diff --git a/packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotView.java b/packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotView.java index fae938d542f1e..9c7718d0e0013 100644 --- a/packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotView.java +++ b/packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotView.java @@ -881,6 +881,13 @@ public class ScreenshotView extends FrameLayout implements } void addQuickShareChip(Notification.Action quickShareAction) { + if (mQuickShareChip != null) { + mSmartChips.remove(mQuickShareChip); + mActionsView.removeView(mQuickShareChip); + } + if (mPendingInteraction == PendingInteraction.QUICK_SHARE) { + mPendingInteraction = null; + } if (mPendingInteraction == null) { LayoutInflater inflater = LayoutInflater.from(mContext); mQuickShareChip = (OverlayActionChip) inflater.inflate(