Skip to content

Commit

Permalink
Merge branch 'GustavoASantos:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Burhanverse authored Sep 23, 2024
2 parents 3287af7 + 96cdca2 commit 3533164
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/src/main/java/com/gustavoas/noti/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 3533164

Please sign in to comment.