fix layout not restoring properly when article is open

This commit is contained in:
Andrew Dolgov 2012-06-20 14:39:01 +04:00
parent b7c9792ada
commit b4b781209f

View File

@ -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,