mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 05:09:53 +01:00
Remove message notifications when shutting down.
This commit is contained in:
@@ -136,6 +136,10 @@ public class BriarService extends RoboService implements EventListener {
|
|||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
if(LOG.isLoggable(INFO)) LOG.info("Destroyed");
|
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);
|
stopForeground(true);
|
||||||
// Stop the services in a background thread
|
// Stop the services in a background thread
|
||||||
new Thread() {
|
new Thread() {
|
||||||
|
|||||||
Reference in New Issue
Block a user