mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
Fix crash.
This commit is contained in:
parent
055ea6a9a5
commit
1d4c1556e3
2 changed files with 3 additions and 0 deletions
|
@ -590,12 +590,14 @@ public class BlurDatabaseHelper {
|
|||
}
|
||||
|
||||
public Cursor getStoriesCursor(FeedSet fs, StateFilter stateFilter, CancellationSignal cancellationSignal) {
|
||||
if (fs == null) return null;
|
||||
ReadFilter readFilter = PrefsUtils.getReadFilter(context, fs);
|
||||
StoryOrder order = PrefsUtils.getStoryOrder(context, fs);
|
||||
return getStoriesCursor(fs, stateFilter, readFilter, order, cancellationSignal);
|
||||
}
|
||||
|
||||
private Cursor getStoriesCursor(FeedSet fs, StateFilter stateFilter, ReadFilter readFilter, StoryOrder order, CancellationSignal cancellationSignal) {
|
||||
if (fs == null) return null;
|
||||
|
||||
if (fs.getSingleFeed() != null) {
|
||||
|
||||
|
|
|
@ -90,6 +90,7 @@ public class FolderListFragment extends NbFragment implements OnGroupClickListen
|
|||
|
||||
@Override
|
||||
public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {
|
||||
if (cursor == null) return;
|
||||
try {
|
||||
switch (loader.getId()) {
|
||||
case SOCIALFEEDS_LOADER:
|
||||
|
|
Loading…
Add table
Reference in a new issue