lock no longer requires usage access

This commit is contained in:
Rani Sargees 2020-03-06 15:17:23 -05:00 committed by Jobobby04
parent 1af11f076f
commit 71c373926f

View File

@ -52,6 +52,7 @@ fun lockEnabled(prefs: PreferencesHelper = Injekt.get())
*/
fun notifyLockSecurity(context: Context,
prefs: PreferencesHelper = Injekt.get()): Boolean {
return false
if (!prefs.eh_lockManually().getOrDefault()
&& Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP
&& !hasAccessToUsageStats(context)) {