Commit d42ce8fe authored by Geoffrey Métais's avatar Geoffrey Métais

Hide popup keepscreen option on Oreo+

parent e79c970b
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment