Have to call super.onResume in tag view fragment even after tag delete

pull/14/head
Sam Bosley 12 years ago
parent 954d0c9740
commit 0b87acc76a

@ -468,6 +468,7 @@ public class TagViewFragment extends TaskListFragment {
@Override
public void onResume() {
if (justDeleted) {
parentOnResume();
// tag was deleted locally in settings
// go back to active tasks
FilterListFragment fl = ((AstridActivity) getActivity()).getFilterListFragment();
@ -477,9 +478,9 @@ public class TagViewFragment extends TaskListFragment {
}
return;
}
super.onResume();
IntentFilter intentFilter = new IntentFilter(BROADCAST_TAG_ACTIVITY);
getActivity().registerReceiver(notifyReceiver, intentFilter);

@ -589,6 +589,15 @@ public class TaskListFragment extends ListFragment implements OnScrollListener,
quickAddBar.destroyRecognizerApi();
}
/**
* Crazy hack so that tag view fragment won't automatically initiate an autosync after a tag
* is deleted. TagViewFragment has to call onResume, but we don't want it to call
* the normal tasklist onResume.
*/
protected void parentOnResume() {
super.onResume();
}
@Override
public void onResume() {
super.onResume();

Loading…
Cancel
Save