dismiss notification for TBR request if it's no longer requested
This commit is contained in:
parent
2db63d4be4
commit
5bb6635cab
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue