lock no longer requires usage access
This commit is contained in:
parent
1af11f076f
commit
71c373926f
@ -52,6 +52,7 @@ fun lockEnabled(prefs: PreferencesHelper = Injekt.get())
|
|||||||
*/
|
*/
|
||||||
fun notifyLockSecurity(context: Context,
|
fun notifyLockSecurity(context: Context,
|
||||||
prefs: PreferencesHelper = Injekt.get()): Boolean {
|
prefs: PreferencesHelper = Injekt.get()): Boolean {
|
||||||
|
return false
|
||||||
if (!prefs.eh_lockManually().getOrDefault()
|
if (!prefs.eh_lockManually().getOrDefault()
|
||||||
&& Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP
|
&& Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP
|
||||||
&& !hasAccessToUsageStats(context)) {
|
&& !hasAccessToUsageStats(context)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user