|
|
@ -597,6 +597,10 @@ public class TaskListFragment extends ListFragment implements OnScrollListener,
|
|
|
|
new IntentFilter(AstridApiConstants.BROADCAST_EVENT_REFRESH));
|
|
|
|
new IntentFilter(AstridApiConstants.BROADCAST_EVENT_REFRESH));
|
|
|
|
syncActionHelper.register();
|
|
|
|
syncActionHelper.register();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (Flags.checkAndClear(Flags.REFRESH)) {
|
|
|
|
|
|
|
|
refresh();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
setUpBackgroundJobs();
|
|
|
|
setUpBackgroundJobs();
|
|
|
|
|
|
|
|
|
|
|
|
if (!Preferences.getBoolean(
|
|
|
|
if (!Preferences.getBoolean(
|
|
|
@ -702,13 +706,6 @@ public class TaskListFragment extends ListFragment implements OnScrollListener,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void onWindowFocusChanged(boolean hasFocus) {
|
|
|
|
|
|
|
|
if (hasFocus && Flags.checkAndClear(Flags.REFRESH)) {
|
|
|
|
|
|
|
|
taskAdapter.flushCaches();
|
|
|
|
|
|
|
|
loadTaskListContent(true);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
|
|
|
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
|
|
|
if(quickAddBar.onActivityResult(requestCode, resultCode, data))
|
|
|
|
if(quickAddBar.onActivityResult(requestCode, resultCode, data))
|
|
|
|