fix layout not restoring properly when article is open
This commit is contained in:
parent
b7c9792ada
commit
b4b781209f
@ -495,6 +495,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,
|
||||
OfflineActivity.class);
|
||||
|
Loading…
Reference in New Issue
Block a user