Loading packages/SystemUI/src/com/android/systemui/bubbles/Bubble.java +11 −5 Original line number Diff line number Diff line Loading @@ -254,21 +254,28 @@ class Bubble implements BubbleViewProvider { } /** * Call when the views should be removed, ensure this is called to clean up ActivityView * content. * Cleanup expanded view for bubbles going into overflow. */ void cleanupViews() { void cleanupExpandedView() { if (mExpandedView != null) { mExpandedView.cleanUpExpandedState(); mExpandedView = null; } mIconView = null; if (mIntent != null) { mIntent.unregisterCancelListener(mIntentCancelListener); } mIntentActive = false; } /** * Call when the views should be removed, ensure this is called to clean up ActivityView * content. */ void cleanupViews() { cleanupExpandedView(); mIconView = null; } void setPendingIntentCanceled() { mPendingIntentCanceled = true; } Loading Loading @@ -328,7 +335,6 @@ class Bubble implements BubbleViewProvider { return; } mInflationTask.cancel(true /* mayInterruptIfRunning */); cleanupViews(); } void setViewInfo(BubbleViewInfoTask.BubbleViewInfo info) { Loading packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java +5 −1 Original line number Diff line number Diff line Loading @@ -1487,7 +1487,11 @@ public class BubbleStackView extends FrameLayout if (v instanceof BadgedImageView && ((BadgedImageView) v).getKey().equals(bubble.getKey())) { mBubbleContainer.removeViewAt(i); if (mBubbleData.hasOverflowBubbleWithKey(bubble.getKey())) { bubble.cleanupExpandedView(); } else { bubble.cleanupViews(); } updatePointerPosition(); logBubbleEvent(bubble, SysUiStatsLog.BUBBLE_UICHANGED__ACTION__DISMISSED); return; Loading Loading
packages/SystemUI/src/com/android/systemui/bubbles/Bubble.java +11 −5 Original line number Diff line number Diff line Loading @@ -254,21 +254,28 @@ class Bubble implements BubbleViewProvider { } /** * Call when the views should be removed, ensure this is called to clean up ActivityView * content. * Cleanup expanded view for bubbles going into overflow. */ void cleanupViews() { void cleanupExpandedView() { if (mExpandedView != null) { mExpandedView.cleanUpExpandedState(); mExpandedView = null; } mIconView = null; if (mIntent != null) { mIntent.unregisterCancelListener(mIntentCancelListener); } mIntentActive = false; } /** * Call when the views should be removed, ensure this is called to clean up ActivityView * content. */ void cleanupViews() { cleanupExpandedView(); mIconView = null; } void setPendingIntentCanceled() { mPendingIntentCanceled = true; } Loading Loading @@ -328,7 +335,6 @@ class Bubble implements BubbleViewProvider { return; } mInflationTask.cancel(true /* mayInterruptIfRunning */); cleanupViews(); } void setViewInfo(BubbleViewInfoTask.BubbleViewInfo info) { Loading
packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java +5 −1 Original line number Diff line number Diff line Loading @@ -1487,7 +1487,11 @@ public class BubbleStackView extends FrameLayout if (v instanceof BadgedImageView && ((BadgedImageView) v).getKey().equals(bubble.getKey())) { mBubbleContainer.removeViewAt(i); if (mBubbleData.hasOverflowBubbleWithKey(bubble.getKey())) { bubble.cleanupExpandedView(); } else { bubble.cleanupViews(); } updatePointerPosition(); logBubbleEvent(bubble, SysUiStatsLog.BUBBLE_UICHANGED__ACTION__DISMISSED); return; Loading