diff --git a/app/src/main/java/com/gustavoas/noti/Utils.kt b/app/src/main/java/com/gustavoas/noti/Utils.kt index 9e37928..121c517 100644 --- a/app/src/main/java/com/gustavoas/noti/Utils.kt +++ b/app/src/main/java/com/gustavoas/noti/Utils.kt @@ -18,7 +18,8 @@ object Utils { fun hasAccessibilityPermission(context: Context): Boolean { val accessibilityServiceComponentName = ComponentName(context, AccessibilityService::class.java) val enabledServices = Settings.Secure.getString(context.contentResolver, Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES) - return enabledServices?.contains(accessibilityServiceComponentName.flattenToString()) ?: false + return enabledServices?.contains(accessibilityServiceComponentName.flattenToString()) + ?: enabledServices?.contains(accessibilityServiceComponentName.flattenToShortString()) ?: false } fun hasNotificationListenerPermission(context: Context): Boolean { diff --git a/build.gradle b/build.gradle index 747e6d3..68b5b94 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,6 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { - id 'com.android.application' version '8.2.2' apply false - id 'com.android.library' version '8.2.2' apply false + id 'com.android.application' version '8.6.0' apply false + id 'com.android.library' version '8.6.0' apply false id 'org.jetbrains.kotlin.android' version '1.8.22' apply false }