Fix notification listener

This commit is contained in:
Tommaso Berlose 2020-10-27 18:28:21 +01:00
parent 49ca17803e
commit a7294edfd4
4 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -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.

View File

@ -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