Search in sources :

Example 1 with CachedIdListSQLiteOpenHelper

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);
}
Also used : CompositeSubscription(rx.subscriptions.CompositeSubscription) CachedIdListSQLiteOpenHelper(com.github.moko256.twicalico.database.CachedIdListSQLiteOpenHelper)

Aggregations

CachedIdListSQLiteOpenHelper (com.github.moko256.twicalico.database.CachedIdListSQLiteOpenHelper)1 CompositeSubscription (rx.subscriptions.CompositeSubscription)1