Buggy code:
protected static final int CONTEXT_MENU_UNDELETE_TASK_ID = string . TAd_contextUndeleteTask ; protected static final int CONTEXT_MENU_PURGE_TASK_ID = string . TAd_contextPurgeTask ; protected static final int CONTEXT_MENU_BROADCAST_INTENT_ID = ( Menu . FIRST ) + 25 ; protected static final int CONTEXT_MENU_PLUGIN_ID_FIRST = ( Menu . FIRST ) + 26 ; public static final String TOKEN_FILTER = "filter" ; public static final String TOKEN_SOURCE = "source" ; public static final String TOKEN_OVERRIDE_ANIM = "finishAnim" ; @ Autowired protected ExceptionService exceptionService ; @ Autowired protected TaskService taskService ; @ Autowired MetadataService metadataService ; @ Autowired Database database ; @ Autowired AddOnService addOnService ; @ Autowired UpgradeService upgradeService ; @ Autowired TagDataService tagDataService ; @ Autowired ActFmPreferenceService actFmPreferenceService ; private final TaskContextActionExposer [ ] contextItemExposers = new TaskContextActionExposer [ ] { new ReminderDebugContextActions . MakeNotification ( ) , new ReminderDebugContextActions . WhenReminder ( ) } ; protected TaskAdapter taskAdapter = null ; protected TaskListFragment . DetailReceiver detailReceiver = new TaskListFragment . DetailReceiver ( ) ; protected TaskListFragment . RefreshReceiver refreshReceiver = new TaskListFragment . RefreshReceiver ( ) ; protected final AtomicReference < String > sqlQueryTemplate = new AtomicReference < String > ( ) ; protected SyncActionHelper syncActionHelper ; protected Filter filter ; protected int sortFlags ; protected int sortSort ; protected boolean overrideFinishAnim ; protected QuickAddBar quickAddBar ; private Timer backgroundTimer ; private boolean isInbox ; private final TaskListContextMenuExtensionLoader contextMenuExtensionLoader = new TaskListContextMenuExtensionLoader ( ) ; protected TaskListFragment . OnTaskListItemClickedListener mListener ; private boolean mDualFragments = false ; public interface OnTaskListItemClickedListener { public void onTaskListItemClicked ( long taskId ) { } } @ Override public void onAttach ( SupportActivity activity ) { } protected View getListBody ( ViewGroup root ) { } @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } @ Override public void onActivityCreated ( Bundle savedInstanceState ) { } protected void trackActivitySource ( ) { } public TagData getActiveTagData ( ) { } protected void onNewIntent ( Intent intent ) { } protected void addSyncRefreshMenuItem ( Menu menu , int themeFlags ) { } protected void addMenuItem ( Menu menu , int title , int imageRes , int id , boolean showAsAction ) { } protected void addMenuItem ( CharSequence title , Drawable image , Intent customIntent , int id ) { } @ Override public void onCreateOptionsMenu ( Menu menu , MenuInflater inflater ) { } protected boolean allowResorting ( ) { } protected void setUpUiComponents ( ) { } protected Intent getOnClickQuickAddIntent ( Task t ) { } public void transitionForTaskEdit ( ) { } private void setUpBackgroundJobs ( ) { } @ Override public void onStart ( ) { } @ Override public void onStop ( ) { } @ Override public void onResume ( ) { } protected void initiateAutomaticSync ( ) { } @ Override public void onPause ( ) { } protected class RefreshReceiver extends BroadcastReceiver { @ Override public void onReceive ( Context context , Intent intent ) { } } protected void refresh ( ) { } protected class DetailReceiver extends BroadcastReceiver { @ Override public void onReceive ( Context context , Intent intent ) { } } public void onWindowFocusChanged ( boolean hasFocus ) { } @ Override public void onActivityResult ( int requestCode , int resultCode , Intent data ) { } public void onScroll ( AbsListView view , int firstVisibleItem , int visibleItemCount , int totalItemCount ) { } public void onScrollStateChanged ( AbsListView view , int scrollState ) { } public void loadTaskListContent ( boolean requery ) { } protected TaskAdapter createTaskAdapter ( TodorooCursor < Task > cursor ) { } protected void setUpTaskList ( ) { } protected Property < ? > [ ] taskProperties ( ) { } public Filter getFilter ( ) { } @ SuppressWarnings ( "nls" ) public void selectCustomId ( long withCustomId ) { } private void showTaskCreateHelpPopover ( ) { } public void showTaskEditHelpPopover ( ) { } private void showListsHelp ( ) { } protected void onTaskCompleted ( Task item ) { } protected void handleCommentsButtonClicked ( ) { } @ Override public void onCreateContextMenu ( ContextMenu menu , View v , ContextMenuInfo menuInfo ) { } public boolean isInbox ( ) { } private void deleteTask ( final Task task ) { } protected void onTaskDelete ( @ SuppressWarnings ( "unused" ) Task task ) { } @ Override public void onListItemClick ( ListView l , View v , int position , long id ) { } @ Override public boolean onContextItemSelected ( MenuItem item ) { } public boolean handleOptionsMenuItemSelected ( int id , Intent intent ) { } @ Override public boolean onOptionsItemSelected ( final MenuItem item ) { } protected void duplicateTask ( long itemId ) { } public void showSupport ( ) { } public void showSettings ( ) { } public void onTaskListItemClicked ( long taskId ) { } protected void toggleDragDrop ( boolean newState ) { } protected boolean isDraggable ( ) { } protected boolean hasDraggableOption ( ) { } @ Override public void onSortSelected ( boolean always , int flags , int sort ) { boolean manualSettingChanged = ( SortHelper . isManualSort ( sortFlags ) ) != ( SortHelper . isManualSort ( flags ) ) ; sortFlags = flags ; sortSort = sort ; if ( always ) { SharedPreferences publicPrefs = AstridPreferences . getPublicPrefs ( ContextManager . getContext ( ) ) ; Editor editor = publicPrefs . edit ( ) ; editor . putInt ( PREF_SORT_FLAGS , flags ) ; editor . putInt ( PREF_SORT_SORT , sort ) ; editor . commit ( ) ; ContextManager . getContext ( ) . startService ( new Intent ( ContextManager . getContext ( ) , WidgetUpdateService . class ) ) ; } try { if ( manualSettingChanged ) toggleDragDrop ( SortHelper . isManualSort ( sortFlags ) ) ; else <START_BUG> loadTaskListContent ( true ) ; <END_BUG> } catch ( IllegalStateException e ) { } } }

Fix:
setUpTaskList ( ) ;