Merge pull request #1216 from Mathias-Boulay/patch-2

Fixed API detection for "ignore notch" option
This commit is contained in:
Duy Tran Khanh 2021-04-13 19:22:30 +07:00 committed by GitHub
commit 6acf0dec02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,8 +17,8 @@ public class LauncherPreferenceFragment extends PreferenceFragmentCompat impleme
// Disable freeform mode in Android 6.0 and below.
findPreference("freeform").setVisible(Build.VERSION.SDK_INT >= 24);
//Disable notch checking behavior on android 8.0 and below.
findPreference("ignoreNotch").setVisible(Build.VERSION.SDK_INT >= 29);
//Disable notch checking behavior on android 8.1 and below.
findPreference("ignoreNotch").setVisible(Build.VERSION.SDK_INT >= 28);
CustomSeekBarPreference seek2 = (CustomSeekBarPreference) findPreference("timeLongPressTrigger");
seek2.setMin(100);