mirror of
https://github.com/mihonapp/mihon.git
synced 2025-06-27 19:47:51 +02:00
lock no longer requires usage access
This commit is contained in:
@ -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)) {
|
||||||
|
Reference in New Issue
Block a user