Fix crash when collapsing search view

pull/795/head
Alex Baker 6 years ago
parent 85da93438a
commit e110b8bd64

@ -412,9 +412,15 @@ public class MainActivity extends InjectingAppCompatActivity
} else {
taskEditFragment.discardButtonClick();
}
} else if (!getTaskListFragment().collapseSearchView()) {
finish();
return;
}
TaskListFragment taskListFragment = getTaskListFragment();
if (taskListFragment != null && taskListFragment.collapseSearchView()) {
return;
}
finish();
}
public TaskListFragment getTaskListFragment() {

Loading…
Cancel
Save