disable lock screen method setting on old devices

This commit is contained in:
Josia Pietsch 2024-11-27 23:51:00 +01:00
parent 8ca67103bf
commit 98274fbd4f

View file

@ -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()
}
}