mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fix crashes when launching stale or impossibly timed Reading activities.
This commit is contained in:
parent
6aca84919f
commit
625b7a7642
2 changed files with 3 additions and 0 deletions
|
@ -15,6 +15,8 @@ public class FeedReading extends Reading {
|
|||
super.onCreate(savedInstanceBundle);
|
||||
|
||||
Feed feed = FeedUtils.dbHelper.getFeed(fs.getSingleFeed());
|
||||
if (feed == null) finish(); // don't open fatally stale intents
|
||||
|
||||
Classifier classifier = FeedUtils.dbHelper.getClassifierForFeed(feed.feedId);
|
||||
|
||||
UIUtils.setCustomActionBar(this, feed.faviconUrl, feed.title);
|
||||
|
|
|
@ -19,6 +19,7 @@ public class SocialFeedReading extends Reading {
|
|||
super.onCreate(savedInstanceBundle);
|
||||
ignoreFilters = getIntent().hasExtra(EXTRA_IGNORE_FILTERS);
|
||||
SocialFeed socialFeed = FeedUtils.dbHelper.getSocialFeed(fs.getSingleSocialFeed().getKey());
|
||||
if (socialFeed == null) finish(); // don't open fatally stale intents
|
||||
UIUtils.setCustomActionBar(this, socialFeed.photoUrl, socialFeed.feedTitle);
|
||||
readingAdapter = new MixedFeedsReadingAdapter(getFragmentManager(), defaultFeedView, socialFeed.userId);
|
||||
getLoaderManager().initLoader(0, null, this);
|
||||
|
|
Loading…
Add table
Reference in a new issue