diff options
Diffstat (limited to 'org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java')
-rwxr-xr-x | org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java index 1899350b..c5165399 100755 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java @@ -487,7 +487,7 @@ public class HeadlinesFragment extends StateSavedFragment { a.unread = false; m_readArticles.add(a); - m_feed.unread--; + if (m_feed != null) m_feed.unread--; } } } @@ -521,7 +521,7 @@ public class HeadlinesFragment extends StateSavedFragment { } }); - if (m_activity.isSmallScreen()) { + if (m_activity.isSmallScreen() && m_feed != null) { m_activity.setTitle(m_feed.title); } @@ -1014,7 +1014,7 @@ public class HeadlinesFragment extends StateSavedFragment { } if (holder.feedTitleView != null) { - if (article.feed_title != null && (m_feed.is_cat || m_feed.id < 0)) { + if (article.feed_title != null && m_feed != null && (m_feed.is_cat || m_feed.id < 0)) { holder.feedTitleView.setTextSize(TypedValue.COMPLEX_UNIT_SP, headlineSmallFontSize); holder.feedTitleView.setText(article.feed_title); |