From 076665da8f21177093f678f52fca99f50222e5ee Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 4 Nov 2014 10:40:04 +0300 Subject: [PATCH] do not add child feed fragments to backstack to make back button behavior more consistent (refs #824) --- org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java | 2 +- .../main/java/org/fox/ttrss/offline/OfflineFeedsActivity.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java index 622fdda3..d6663116 100644 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java @@ -257,7 +257,7 @@ public class FeedsActivity extends OnlineActivity implements HeadlinesEventListe ff.initialize(cat, true); ft.replace(R.id.feeds_fragment, ff, FRAG_FEEDS); - ft.addToBackStack(null); + //ft.addToBackStack(null); ft.commit(); //getSupportActionBar().setDisplayHomeAsUpEnabled(true); diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineFeedsActivity.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineFeedsActivity.java index 7decee7b..2df3cb23 100644 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineFeedsActivity.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineFeedsActivity.java @@ -206,7 +206,7 @@ public class OfflineFeedsActivity extends OfflineActivity implements OfflineHead ff.initialize(catId, true); ft.replace(R.id.feeds_fragment, ff, FRAG_FEEDS); - ft.addToBackStack(null); + //ft.addToBackStack(null); //getSupportActionBar().setDisplayHomeAsUpEnabled(true); //m_actionbarUpEnabled = true;