1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-02 01:01:17 +00:00

Fix notification not being cancelled on app shutdown (#81)

Fix notification not being cancelled on app shutdown if the app was continously in DISABLED state.
This commit is contained in:
Catfriend1 2018-10-08 05:19:52 +02:00 committed by GitHub
parent c224bcb04a
commit 79d0d7cc4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -171,6 +171,8 @@ public class NotificationHandler {
Log.v(TAG, "Updating notification"); Log.v(TAG, "Updating notification");
mNotificationManager.notify(idToShow, builder.build()); mNotificationManager.notify(idToShow, builder.build());
} }
} else {
mNotificationManager.cancel(idToShow);
} }
mNotificationManager.cancel(idToCancel); mNotificationManager.cancel(idToCancel);