From b4b781209f643302b69b696fbafcbe9ee0495f76 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 20 Jun 2012 14:39:01 +0400 Subject: [PATCH] fix layout not restoring properly when article is open --- src/org/fox/ttrss/MainActivity.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/org/fox/ttrss/MainActivity.java b/src/org/fox/ttrss/MainActivity.java index f6d03915..63f5f0ea 100644 --- a/src/org/fox/ttrss/MainActivity.java +++ b/src/org/fox/ttrss/MainActivity.java @@ -494,6 +494,14 @@ public class MainActivity extends FragmentActivity implements OnlineServices { m_headlinesActionModeCallback = new HeadlinesActionModeCallback(); } + + if (m_smallScreenMode) { + if (m_selectedArticle != null) { + FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); + ft.hide(getSupportFragmentManager().findFragmentByTag(FRAG_HEADLINES)); + ft.commit(); + } + } if (m_isOffline) { Intent offline = new Intent(MainActivity.this,