Fix notch setting appearing while being useless

This commit is contained in:
SerpentSpirale 2022-04-09 20:21:11 +02:00
parent 7b756a1925
commit 0876d9825e

View File

@ -19,7 +19,7 @@ public class LauncherPreferenceVideoFragment extends LauncherPreferenceFragment
addPreferencesFromResource(R.xml.pref_video); addPreferencesFromResource(R.xml.pref_video);
//Disable notch checking behavior on android 8.1 and below. //Disable notch checking behavior on android 8.1 and below.
findPreference("ignoreNotch").setVisible(Build.VERSION.SDK_INT >= Build.VERSION_CODES.P && PREF_NOTCH_SIZE != 0); findPreference("ignoreNotch").setVisible(Build.VERSION.SDK_INT >= Build.VERSION_CODES.P && PREF_NOTCH_SIZE > 0);
CustomSeekBarPreference seek5 = findPreference("resolutionRatio"); CustomSeekBarPreference seek5 = findPreference("resolutionRatio");
seek5.setMin(25); seek5.setMin(25);