[Android] Hide popup keepscreen option on Oreo+
Geoffrey Métais
git at videolan.org
Thu Jan 25 09:30:27 CET 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jan 25 09:28:46 2018 +0100| [d42ce8fe9dde6f9f1cf4d733336acd34a3819129] | committer: Geoffrey Métais
Hide popup keepscreen option on Oreo+
> https://code.videolan.org/videolan/vlc-android/commit/d42ce8fe9dde6f9f1cf4d733336acd34a3819129
---
.../src/org/videolan/vlc/gui/preferences/PreferencesVideo.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesVideo.java b/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesVideo.java
index 4f7b343e5..942b80612 100644
--- a/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesVideo.java
+++ b/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesVideo.java
@@ -22,8 +22,10 @@
package org.videolan.vlc.gui.preferences;
+import android.os.Bundle;
import android.support.v7.preference.Preference;
+import org.videolan.libvlc.util.AndroidUtil;
import org.videolan.vlc.R;
public class PreferencesVideo extends BasePreferenceFragment {
@@ -38,6 +40,12 @@ public class PreferencesVideo extends BasePreferenceFragment {
return R.string.video_prefs_category;
}
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ findPreference("popup_keepscreen").setVisible(!AndroidUtil.isOOrLater);
+ }
+
@Override
public boolean onPreferenceTreeClick(Preference preference) {
if (preference.getKey() == null)
More information about the Android
mailing list