Browse Source

article fragment: bail out if m_article is null oncreateview (remove check for m_activity)

Andrew Dolgov 1 year ago
parent
commit
5dfda2da1a
1 changed files with 1 additions and 2 deletions
  1. 1 2
      org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleFragment.java

+ 1 - 2
org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleFragment.java

@@ -161,8 +161,7 @@ public class ArticleFragment extends StateSavedFragment  {
 		final View view = inflater.inflate(R.layout.fragment_article, container, false);
 
 		// couldn't reinitialize state properly, might as well bail out
-        // tfw m_activity is null
-		if (m_article == null && m_activity != null) {
+		if (m_article == null) {
 		    m_activity.finish();
         }