Commit 29711b92 by olly Committed by Oliver Woodman

Cancel notification on dismiss

This doesn't happen automatically after all on older devices

PiperOrigin-RevId: 230251258
parent 9fec49f3
...@@ -928,10 +928,8 @@ public class PlayerNotificationManager { ...@@ -928,10 +928,8 @@ public class PlayerNotificationManager {
private void stopNotification(boolean dismissedByUser) { private void stopNotification(boolean dismissedByUser) {
if (isNotificationStarted) { if (isNotificationStarted) {
if (!dismissedByUser) {
notificationManager.cancel(notificationId);
}
isNotificationStarted = false; isNotificationStarted = false;
notificationManager.cancel(notificationId);
context.unregisterReceiver(notificationBroadcastReceiver); context.unregisterReceiver(notificationBroadcastReceiver);
if (notificationListener != null) { if (notificationListener != null) {
notificationListener.onNotificationCancelled(notificationId, dismissedByUser); notificationListener.onNotificationCancelled(notificationId, dismissedByUser);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment