mirror of
https://github.com/jrpie/Launcher.git
synced 2025-02-23 14:31:30 +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.Intent
|
||||||
import android.content.SharedPreferences
|
import android.content.SharedPreferences
|
||||||
|
import android.os.Build
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import androidx.preference.PreferenceFragmentCompat
|
import androidx.preference.PreferenceFragmentCompat
|
||||||
import de.jrpie.android.launcher.R
|
import de.jrpie.android.launcher.R
|
||||||
|
@ -84,6 +85,11 @@ class SettingsFragmentLauncher : PreferenceFragmentCompat() {
|
||||||
LockMethod.chooseMethod(requireContext())
|
LockMethod.chooseMethod(requireContext())
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P) {
|
||||||
|
lockMethod?.isVisible = false
|
||||||
|
}
|
||||||
|
|
||||||
updateVisibility()
|
updateVisibility()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue