use of com.github.moko256.twicalico.database.CachedIdListSQLiteOpenHelper in project twicalico by moko256.
the class BaseTweetListFragment method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
list = new ArrayList<>();
subscription = new CompositeSubscription();
statusIdsDatabase = new CachedIdListSQLiteOpenHelper(getContext(), GlobalApplication.userId, getCachedIdsDatabaseName());
if (savedInstanceState == null) {
List<Long> c = statusIdsDatabase.getIds();
if (c.size() > 0) {
list.addAll(c);
}
}
super.onCreate(savedInstanceState);
}
Aggregations