diff options
Diffstat (limited to 'org.fox.ttrss/src/main/java/org')
3 files changed, 6 insertions, 22 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleImagesPagerActivity.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleImagesPagerActivity.java index 39d5b790..cfcbc584 100644 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleImagesPagerActivity.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleImagesPagerActivity.java @@ -280,10 +280,6 @@ public class ArticleImagesPagerActivity extends CommonActivity implements Gestur public void onResume() { super.onResume(); - /* if (isCompatMode() && m_prefs.getBoolean("dim_status_bar", false)) { - setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE); - } */ - if (m_prefs.getBoolean("full_screen_mode", false)) { getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticlePager.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticlePager.java index 3015eec0..6ddff8d9 100644 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticlePager.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticlePager.java @@ -52,10 +52,6 @@ public class ArticlePager extends Fragment { ArticleFragment af = new ArticleFragment(); af.initialize(article); - if (m_prefs.getBoolean("dim_status_bar", false) && getView() != null && !m_activity.isCompatMode()) { - getView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE); - } - return af; } return null; @@ -280,11 +276,7 @@ public class ArticlePager extends Fragment { } m_activity.invalidateOptionsMenu(); - - if (!m_activity.isCompatMode() && m_prefs.getBoolean("dim_status_bar", false)) { - getView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE); - } - + if (m_prefs.getBoolean("full_screen_mode", false)) { m_activity.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineArticlePager.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineArticlePager.java index 510ab97b..f58205a3 100644 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineArticlePager.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineArticlePager.java @@ -1,9 +1,5 @@ package org.fox.ttrss.offline; -import org.fox.ttrss.R; - -import com.viewpagerindicator.UnderlinePageIndicator; - import android.app.Activity; import android.content.SharedPreferences; import android.database.Cursor; @@ -20,6 +16,10 @@ import android.view.View; import android.view.ViewGroup; import android.view.WindowManager; +import com.viewpagerindicator.UnderlinePageIndicator; + +import org.fox.ttrss.R; + public class OfflineArticlePager extends Fragment { private final String TAG = this.getClass().getSimpleName(); @@ -118,11 +118,7 @@ public class OfflineArticlePager extends Fragment { @Override public void onResume() { super.onResume(); - - if (!m_activity.isCompatMode() && m_prefs.getBoolean("dim_status_bar", false)) { - getView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE); - } - + if (m_prefs.getBoolean("full_screen_mode", false)) { m_activity.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); |