Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 828b45c9 authored by Mady Mellor's avatar Mady Mellor Committed by Automerger Merge Worker
Browse files

Merge "Revert "Remove bubble when PendingIntent is canceled"" into rvc-dev am:...

Merge "Revert "Remove bubble when PendingIntent is canceled"" into rvc-dev am: 7f042aaa am: 3c64f563

Change-Id: I6c96b7d3f7a8479d4f1510526eff1201e2fa525e
parents 4cd65d11 3c64f563
Loading
Loading
Loading
Loading
+1 −15
Original line number Diff line number Diff line
@@ -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);
    }