Fix notification listener
This commit is contained in:
parent
49ca17803e
commit
a7294edfd4
BIN
.idea/caches/build_file_checksums.ser
generated
BIN
.idea/caches/build_file_checksums.ser
generated
Binary file not shown.
@ -23,7 +23,7 @@ android {
|
||||
applicationId "com.tommasoberlose.anotherwidget"
|
||||
minSdkVersion 23
|
||||
targetSdkVersion 29
|
||||
versionCode 110
|
||||
versionCode 111
|
||||
versionName "2.0.15"
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
Binary file not shown.
@ -43,7 +43,7 @@ class NotificationListener : NotificationListenerService() {
|
||||
} catch (ex: Exception) {
|
||||
Preferences.lastNotificationIcon = 0
|
||||
}
|
||||
Preferences.lastNotificationPackage = sbn.notification.smallIcon.resPackage
|
||||
Preferences.lastNotificationPackage = sbn.packageName
|
||||
} else {
|
||||
try {
|
||||
Preferences.lastNotificationIcon = sbn.notification.icon
|
||||
|
Loading…
x
Reference in New Issue
Block a user