1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-23 18:36:50 +01:00

Fix regression introduced by 737578debc

With many thanks to https://github.com/80tf3262p8 who spotted the error

closes #975
This commit is contained in:
Daniele Gobbetti 2018-02-10 16:52:24 +01:00
parent 8ba56db786
commit 831303aea8
3 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,8 @@
### Changelog
#### Version next
* Fix notification deletion regression
#### Version 0.24.4
* Amazfit Bip: Fix language setting on new firmwares

View File

@ -367,7 +367,7 @@ public class NotificationListener extends NotificationListenerService {
Prefs prefs = GBApplication.getPrefs();
if (prefs.getBoolean("autoremove_notifications", false)) {
LOG.info("notification removed, will ask device to delete it");
GBApplication.deviceService().onDeleteNotification(sbn.getPackageName().hashCode() * 31 + sbn.getId());
GBApplication.deviceService().onDeleteNotification((int) sbn.getPostTime());
}
}

View File

@ -1,5 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<changelog>
<release version="next">
<change>Fix notification deletion regression</change>
</release>
<release version="0.24.4" versioncode="121">
<change>Amazfit Bip: Fix language setting on new firmwares</change>
</release>