|
|
@ -98,10 +98,14 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener, |
|
|
|
return Observable.create(new Action<BookmarkViewAdapter>() { |
|
|
|
return Observable.create(new Action<BookmarkViewAdapter>() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void onSubscribe(@NonNull Subscriber<BookmarkViewAdapter> subscriber) { |
|
|
|
public void onSubscribe(@NonNull Subscriber<BookmarkViewAdapter> subscriber) { |
|
|
|
|
|
|
|
Context context = getContext(); |
|
|
|
|
|
|
|
if (context != null) { |
|
|
|
mBookmarkAdapter = new BookmarkViewAdapter(getContext(), mBookmarks); |
|
|
|
mBookmarkAdapter = new BookmarkViewAdapter(getContext(), mBookmarks); |
|
|
|
setBookmarkDataSet(mBookmarkManager.getBookmarksFromFolder(null, true), false); |
|
|
|
setBookmarkDataSet(mBookmarkManager.getBookmarksFromFolder(null, true), false); |
|
|
|
subscriber.onNext(mBookmarkAdapter); |
|
|
|
subscriber.onNext(mBookmarkAdapter); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
subscriber.onComplete(); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|