diff options
| author | 2018-02-17 03:10:29 +0000 | |
|---|---|---|
| committer | 2018-02-17 03:10:29 +0000 | |
| commit | c84c7eb3b3d99db5bcd77bcbfd06ef81cd9d7b43 (patch) | |
| tree | c0c26a8008a8e13aee8fe77eaf3e8c90bf21e1d2 | |
| parent | 394989a34a80851845d8c9e9368c0850b49efbfb (diff) | |
| parent | 99298431b0badf5df62d7ec536da9152c7689a7e (diff) | |
Merge "Hide previous toast from pkg before updating"
| -rw-r--r-- | services/core/java/com/android/server/notification/NotificationManagerService.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index 3800017f0a08..548f15419798 100644 --- a/services/core/java/com/android/server/notification/NotificationManagerService.java +++ b/services/core/java/com/android/server/notification/NotificationManagerService.java @@ -1836,6 +1836,10 @@ public class NotificationManagerService extends SystemService { if (index >= 0) { record = mToastQueue.get(index); record.update(duration); + try { + record.callback.hide(); + } catch (RemoteException e) { + } record.update(callback); } else { Binder token = new Binder(); |