mirror of
https://github.com/viq/NewsBlur.git
synced 2025-11-01 09:09:16 +00:00
Fix crash on missing feed titles.
This commit is contained in:
parent
b5065e98c7
commit
dac141633f
1 changed files with 5 additions and 3 deletions
|
|
@ -46,9 +46,11 @@ public class FeedItemsList extends ItemsList {
|
|||
|
||||
final Uri feedUri = FeedProvider.FEEDS_URI.buildUpon().appendPath(feedId).build();
|
||||
Cursor cursor = getContentResolver().query(feedUri, null, DatabaseConstants.getStorySelectionFromState(currentState), null, null);
|
||||
cursor.moveToFirst();
|
||||
Feed feed = Feed.fromCursor(cursor);
|
||||
setTitle(feed.title);
|
||||
if (cursor.getCount() > 0) {
|
||||
cursor.moveToFirst();
|
||||
Feed feed = Feed.fromCursor(cursor);
|
||||
setTitle(feed.title);
|
||||
}
|
||||
|
||||
itemListFragment = (FeedItemListFragment) fragmentManager.findFragmentByTag(FeedItemListFragment.FRAGMENT_TAG);
|
||||
if (itemListFragment == null) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue