From 40c88ee240924ebb894c2f48e685b2ea9fbe0a32 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 25 Nov 2014 12:32:32 +0300 Subject: [PATCH] remove dim status bar preference --- .../org/fox/ttrss/ArticleImagesPagerActivity.java | 4 ---- .../src/main/java/org/fox/ttrss/ArticlePager.java | 10 +--------- .../org/fox/ttrss/offline/OfflineArticlePager.java | 14 +++++--------- org.fox.ttrss/src/main/res/xml/preferences.xml | 5 ----- 4 files changed, 6 insertions(+), 27 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); diff --git a/org.fox.ttrss/src/main/res/xml/preferences.xml b/org.fox.ttrss/src/main/res/xml/preferences.xml index fbaec0d2..b9087b22 100644 --- a/org.fox.ttrss/src/main/res/xml/preferences.xml +++ b/org.fox.ttrss/src/main/res/xml/preferences.xml @@ -143,11 +143,6 @@ android:key="use_volume_keys" android:summary="@string/use_volume_keys_long" android:title="@string/use_volume_keys" /> -