From b416e206f2ed36bf27f049b3ebfb18924b4c7e56 Mon Sep 17 00:00:00 2001 From: TheScarastic Date: Thu, 2 Mar 2023 09:21:56 +0000 Subject: AdvancedPrivacy: Add support for sdk 33 --- .../e/privacymodules/permissions/PermissionsPrivacyModule.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'permissionse/src/main/java/foundation/e') diff --git a/permissionse/src/main/java/foundation/e/privacymodules/permissions/PermissionsPrivacyModule.kt b/permissionse/src/main/java/foundation/e/privacymodules/permissions/PermissionsPrivacyModule.kt index c2e3e2c..cde4afb 100644 --- a/permissionse/src/main/java/foundation/e/privacymodules/permissions/PermissionsPrivacyModule.kt +++ b/permissionse/src/main/java/foundation/e/privacymodules/permissions/PermissionsPrivacyModule.kt @@ -92,7 +92,7 @@ class PermissionsPrivacyModule(context: Context) : APermissionsPrivacyModule(con return when (Build.VERSION.SDK_INT) { 29 -> setVpnPackageAuthorizationSDK29(packageName) 30 -> setVpnPackageAuthorizationSDK30(packageName) - 31, 32 -> setVpnPackageAuthorizationSDK32(packageName) + 31, 32, 33 -> setVpnPackageAuthorizationSDK32(packageName) else -> { Log.e("Permissions-e", "Bad android sdk version") false @@ -203,7 +203,7 @@ class PermissionsPrivacyModule(context: Context) : APermissionsPrivacyModule(con override fun getAlwaysOnVpnPackage(): String? { return when (Build.VERSION.SDK_INT) { 29, 30 -> getAlwaysOnVpnPackageSDK29() - 31, 32 -> getAlwaysOnVpnPackageSDK32() + 31, 32, 33 -> getAlwaysOnVpnPackageSDK32() else -> { Log.e("Permissions-e", "Bad android sdk version") null @@ -239,7 +239,7 @@ class PermissionsPrivacyModule(context: Context) : APermissionsPrivacyModule(con override fun setBlockable(notificationChannel: NotificationChannel) { when (Build.VERSION.SDK_INT) { 29 -> notificationChannel.setBlockableSystem(true) - 30, 31, 32 -> notificationChannel.setBlockable(true) + 30, 31, 32, 33 -> notificationChannel.setBlockable(true) else -> { Log.e("Permissions-e", "Bad android sdk version") } -- cgit v1.2.1