diff --git a/briar-android/src/org/briarproject/android/BriarService.java b/briar-android/src/org/briarproject/android/BriarService.java index 96de8c0795eacedc65475a4f3e4bce9485620f15..4e0f8ce8b53f932f99ef79ca3999c0eaef5690f9 100644 --- a/briar-android/src/org/briarproject/android/BriarService.java +++ b/briar-android/src/org/briarproject/android/BriarService.java @@ -136,6 +136,10 @@ public class BriarService extends RoboService implements EventListener { public void onDestroy() { super.onDestroy(); if(LOG.isLoggable(INFO)) LOG.info("Destroyed"); + Object o = getSystemService(NOTIFICATION_SERVICE); + NotificationManager nm = (NotificationManager) o; + nm.cancel(PRIVATE_MESSAGE_NOTIFICATION_ID); + nm.cancel(GROUP_POST_NOTIFICATION_ID); stopForeground(true); // Stop the services in a background thread new Thread() {