1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-26 06:11:19 +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");
mNotificationManager.notify(idToShow, builder.build());
}
} else {
mNotificationManager.cancel(idToShow);
}
mNotificationManager.cancel(idToCancel);