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

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

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

@ -589,6 +589,15 @@ public class TaskListFragment extends ListFragment implements OnScrollListener,
quickAddBar.destroyRecognizerApi(); 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 @Override
public void onResume() { public void onResume() {
super.onResume(); super.onResume();

Loading…
Cancel
Save