summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mady Mellor <madym@google.com> 2020-04-28 16:34:25 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2020-04-28 16:34:25 +0000
commit7f042aaada26315fd30f62a77ca26459c4494d83 (patch)
tree7a49dd6d5d5575e266d525f658d6f61ccaf42c58
parentf2f45653b4cb7d367fa4cd0e637a742cff5ac23e (diff)
parent2e09b5d479a60a45e9109c5ad4212c7522399003 (diff)
Merge "Revert "Remove bubble when PendingIntent is canceled"" into rvc-dev
-rw-r--r--packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java16
1 files changed, 1 insertions, 15 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java
index e8fd7e0e8b38..da2a56d65124 100644
--- a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java
+++ b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java
@@ -54,7 +54,6 @@ import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.content.res.Configuration;
import android.graphics.Rect;
-import android.os.Handler;
import android.os.RemoteException;
import android.os.ServiceManager;
import android.service.notification.NotificationListenerService;
@@ -177,9 +176,6 @@ public class BubbleController implements ConfigurationController.ConfigurationLi
private IStatusBarService mBarService;
private SysUiState mSysUiState;
- // Used to post to main UI thread
- private Handler mHandler = new Handler();
-
// Used for determining view rect for touch interaction
private Rect mTempRect = new Rect();
@@ -812,17 +808,7 @@ public class BubbleController implements ConfigurationController.ConfigurationLi
Bubble bubble = mBubbleData.getOrCreateBubble(notif);
bubble.setInflateSynchronously(mInflateSynchronously);
bubble.inflate(
- b -> {
- mBubbleData.notificationEntryUpdated(b, suppressFlyout, showInShade);
- if (bubble.getBubbleIntent() == null) {
- return;
- }
- bubble.getBubbleIntent().registerCancelListener(pendingIntent -> {
- mHandler.post(
- () -> removeBubble(bubble.getEntry(),
- BubbleController.DISMISS_INVALID_INTENT));
- });
- },
+ b -> mBubbleData.notificationEntryUpdated(b, suppressFlyout, showInShade),
mContext, mStackView, mBubbleIconFactory);
}