mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Start story list loader as soon as possible.
This commit is contained in:
parent
c2614b21c7
commit
1e8a776add
1 changed files with 8 additions and 1 deletions
|
@ -66,10 +66,17 @@ public abstract class ItemListFragment extends NbFragment implements OnScrollLis
|
||||||
// onCreateView gets re-called thereafter.
|
// onCreateView gets re-called thereafter.
|
||||||
itemList.setAdapter(adapter);
|
itemList.setAdapter(adapter);
|
||||||
}
|
}
|
||||||
getLoaderManager().initLoader(ITEMLIST_LOADER , null, this);
|
|
||||||
return v;
|
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.
|
* Indicate that the DB was cleared.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue