From 0aae49e569940885a8ddcec2c9c85f179f747b0e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 22 Oct 2013 09:35:09 +0400 Subject: [PATCH] use commitAllowingStateLoss() in onHeadlinesLoaded because it could be called after activity stop --- src/org/fox/ttrss/HeadlinesActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/fox/ttrss/HeadlinesActivity.java b/src/org/fox/ttrss/HeadlinesActivity.java index 4c2614e1..18b1eeff 100644 --- a/src/org/fox/ttrss/HeadlinesActivity.java +++ b/src/org/fox/ttrss/HeadlinesActivity.java @@ -250,7 +250,7 @@ public class HeadlinesActivity extends OnlineActivity implements HeadlinesEventL ft.replace(R.id.article_fragment, new LoadingFragment(), null); - ft.commit(); + ft.commitAllowingStateLoss(); final Article fArticle = article; final Feed fFeed = hf.getFeed(); @@ -265,7 +265,7 @@ public class HeadlinesActivity extends OnlineActivity implements HeadlinesEventL af.initialize(fArticle, fFeed); ft.replace(R.id.article_fragment, af, FRAG_ARTICLE); - ft.commit(); + ft.commitAllowingStateLoss(); } }, 10); }