Start story list loader as soon as possible.

This commit is contained in:
dosiecki 2014-11-11 04:22:26 -08:00
parent c2614b21c7
commit 1e8a776add

View file

@ -66,10 +66,17 @@ public abstract class ItemListFragment extends NbFragment implements OnScrollLis
// onCreateView gets re-called thereafter.
itemList.setAdapter(adapter);
}
getLoaderManager().initLoader(ITEMLIST_LOADER , null, this);
return v;
}
@Override
public synchronized void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
if (getLoaderManager().getLoader(ITEMLIST_LOADER) == null) {
getLoaderManager().initLoader(ITEMLIST_LOADER, null, this);
}
}
/**
* Indicate that the DB was cleared.
*/