mirror of
https://github.com/jrpie/Launcher.git
synced 2025-02-22 22:11:27 +01:00
disable lock screen method setting on old devices
This commit is contained in:
parent
8ca67103bf
commit
98274fbd4f
1 changed files with 6 additions and 0 deletions
|
@ -2,6 +2,7 @@ package de.jrpie.android.launcher.ui.settings.launcher
|
|||
|
||||
import android.content.Intent
|
||||
import android.content.SharedPreferences
|
||||
import android.os.Build
|
||||
import android.os.Bundle
|
||||
import androidx.preference.PreferenceFragmentCompat
|
||||
import de.jrpie.android.launcher.R
|
||||
|
@ -84,6 +85,11 @@ class SettingsFragmentLauncher : PreferenceFragmentCompat() {
|
|||
LockMethod.chooseMethod(requireContext())
|
||||
true
|
||||
}
|
||||
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P) {
|
||||
lockMethod?.isVisible = false
|
||||
}
|
||||
|
||||
updateVisibility()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue