remove dim status bar preference
This commit is contained in:
parent
ce635408a5
commit
40c88ee240
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user