Fixed a bug in how task edit fragment handles rotation, incidentally solving a couple crashes

pull/14/head
Sam Bosley 13 years ago
parent d536cdbf1e
commit b4138d8c92

@ -893,11 +893,13 @@ ViewPager.OnPageChangeListener, EditNoteActivity.UpdatesChangedListener {
R.anim.slide_right_in, R.anim.slide_right_out);
}
if (getActivity() instanceof TaskListActivity) {
if (title.getText().length() == 0 && isNewTask
&& model != null && model.isSaved()) {
taskService.delete(model);
}
}
}
/*
* ======================================================================

Loading…
Cancel
Save