mirror of
https://codeberg.org/timelimit/timelimit-android.git
synced 2025-10-03 09:49:25 +02:00
Fix crash when using the device owner permission at Android < 7
This commit is contained in:
parent
d36e2ad9ca
commit
2ea9893a11
1 changed files with 1 additions and 1 deletions
|
@ -356,7 +356,7 @@ class AndroidIntegration(context: Context): PlatformIntegration(maximumProtectio
|
||||||
if (
|
if (
|
||||||
(getCurrentProtectionLevel() == ProtectionLevel.DeviceOwner) &&
|
(getCurrentProtectionLevel() == ProtectionLevel.DeviceOwner) &&
|
||||||
(!BuildConfig.storeCompilant) &&
|
(!BuildConfig.storeCompilant) &&
|
||||||
(Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
|
(Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
|
||||||
) {
|
) {
|
||||||
val failedApps = policyManager.setPackagesSuspended(
|
val failedApps = policyManager.setPackagesSuspended(
|
||||||
deviceAdmin,
|
deviceAdmin,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue