remove dim status bar preference

This commit is contained in:
Andrew Dolgov 2014-11-25 12:32:32 +03:00
parent ce635408a5
commit 40c88ee240
4 changed files with 6 additions and 27 deletions

View File

@ -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);

View File

@ -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;
@ -281,10 +277,6 @@ 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);

View File

@ -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();
@ -119,10 +119,6 @@ public class OfflineArticlePager extends Fragment {
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);

View File

@ -143,11 +143,6 @@
android:key="use_volume_keys"
android:summary="@string/use_volume_keys_long"
android:title="@string/use_volume_keys" />
<CheckBoxPreference
android:defaultValue="false"
android:key="dim_status_bar"
android:summary="@string/prefs_dim_status_bar_long"
android:title="@string/prefs_dim_status_bar" />
<CheckBoxPreference
android:defaultValue="false"
android:key="full_screen_mode"