diff options
author | Andrew Dolgov <[email protected]> | 2017-10-31 20:59:22 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-10-31 20:59:22 +0300 |
commit | 791a1685ab1dccc2e4a5990850a3d0cb8317b316 (patch) | |
tree | 7bb9a55eccfbe0b8e297e3c4937d75e8d0cc9edc | |
parent | dbac59f86fda850d0a3ee0d052cad916f899d0e4 (diff) |
offline detail activity: force hide sidebar in portrait now that activity is kept through orientation change
-rw-r--r-- | org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineDetailActivity.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineDetailActivity.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineDetailActivity.java index 99fb83a4..d0637692 100644 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineDetailActivity.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineDetailActivity.java @@ -75,6 +75,10 @@ public class OfflineDetailActivity extends OfflineActivity implements OfflineHea setSmallScreen(findViewById(R.id.sw600dp_anchor) == null); + if (isPortrait() && !isSmallScreen()) { + findViewById(R.id.headlines_fragment).setVisibility(View.GONE); + } + if (savedInstanceState == null) { Intent i = getIntent(); |