use of rx.subscriptions.CompositeSubscription in project twicalico by moko256.
the class TrendsFragment method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
list = new ArrayList<>();
subscription = new CompositeSubscription();
helper = new CachedTrendsSQLiteOpenHelper(getContext(), GlobalApplication.userId);
if (savedInstanceState == null) {
List<Trend> trends = helper.getTrends();
if (trends.size() > 0) {
list = trends;
setRefreshing(false);
}
}
super.onCreate(savedInstanceState);
}
Aggregations