dismiss notification for TBR request if it's no longer requested

This commit is contained in:
Sebastian Lenz 2018-07-25 23:32:23 +02:00
parent 2db63d4be4
commit 5bb6635cab

View file

@ -407,6 +407,10 @@ public class LoopPlugin extends PluginBase {
// mId allows you to update the notification later on.
mNotificationManager.notify(Constants.notificationID, builder.build());
MainApp.bus().post(new EventNewOpenLoopNotification());
// dismiss notifications
NotificationManager notificationManager =
(NotificationManager) MainApp.instance().getSystemService(Context.NOTIFICATION_SERVICE);
notificationManager.cancel(Constants.notificationID);
}
}