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

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