Loading packages/SystemUI/src/com/android/systemui/bubbles/BubbleExpandedView.java +4 −14 Original line number Diff line number Diff line Loading @@ -48,7 +48,6 @@ import android.util.AttributeSet; import android.util.Log; import android.util.StatsLog; import android.view.View; import android.view.ViewGroup; import android.view.WindowInsets; import android.widget.FrameLayout; import android.widget.ImageButton; Loading Loading @@ -491,23 +490,14 @@ public class BubbleExpandedView extends LinearLayout implements View.OnClickList /** * Removes and releases an ActivityView if one was previously created for this bubble. */ public void destroyActivityView(ViewGroup tmpParent) { public void destroyActivityView() { if (mActivityView == null) { return; } if (!mActivityViewReady) { // release not needed, never initialized? mActivityView = null; return; } // HACK: release() will crash if the view is not attached. if (!isAttachedToWindow()) { mActivityView.setVisibility(View.GONE); tmpParent.addView(this); } if (mActivityViewReady) { mActivityView.release(); ((ViewGroup) getParent()).removeView(this); } removeView(mActivityView); mActivityView = null; mActivityViewReady = false; } Loading packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java +2 −2 Original line number Diff line number Diff line Loading @@ -348,7 +348,7 @@ public class BubbleStackView extends FrameLayout { // Remove it from the views int removedIndex = mBubbleContainer.indexOfChild(b.iconView); b.expandedView.destroyActivityView(this /* tmpParent */); b.expandedView.destroyActivityView(); mBubbleContainer.removeView(b.iconView); int bubbleCount = mBubbleContainer.getChildCount(); Loading Loading @@ -377,7 +377,7 @@ public class BubbleStackView extends FrameLayout { public void stackDismissed() { for (Bubble bubble : mBubbleData.getBubbles()) { bubble.entry.setBubbleDismissed(true); bubble.expandedView.destroyActivityView(this /* tmpParent */); bubble.expandedView.destroyActivityView(); } mBubbleData.clear(); collapseStack(); Loading Loading
packages/SystemUI/src/com/android/systemui/bubbles/BubbleExpandedView.java +4 −14 Original line number Diff line number Diff line Loading @@ -48,7 +48,6 @@ import android.util.AttributeSet; import android.util.Log; import android.util.StatsLog; import android.view.View; import android.view.ViewGroup; import android.view.WindowInsets; import android.widget.FrameLayout; import android.widget.ImageButton; Loading Loading @@ -491,23 +490,14 @@ public class BubbleExpandedView extends LinearLayout implements View.OnClickList /** * Removes and releases an ActivityView if one was previously created for this bubble. */ public void destroyActivityView(ViewGroup tmpParent) { public void destroyActivityView() { if (mActivityView == null) { return; } if (!mActivityViewReady) { // release not needed, never initialized? mActivityView = null; return; } // HACK: release() will crash if the view is not attached. if (!isAttachedToWindow()) { mActivityView.setVisibility(View.GONE); tmpParent.addView(this); } if (mActivityViewReady) { mActivityView.release(); ((ViewGroup) getParent()).removeView(this); } removeView(mActivityView); mActivityView = null; mActivityViewReady = false; } Loading
packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java +2 −2 Original line number Diff line number Diff line Loading @@ -348,7 +348,7 @@ public class BubbleStackView extends FrameLayout { // Remove it from the views int removedIndex = mBubbleContainer.indexOfChild(b.iconView); b.expandedView.destroyActivityView(this /* tmpParent */); b.expandedView.destroyActivityView(); mBubbleContainer.removeView(b.iconView); int bubbleCount = mBubbleContainer.getChildCount(); Loading Loading @@ -377,7 +377,7 @@ public class BubbleStackView extends FrameLayout { public void stackDismissed() { for (Bubble bubble : mBubbleData.getBubbles()) { bubble.entry.setBubbleDismissed(true); bubble.expandedView.destroyActivityView(this /* tmpParent */); bubble.expandedView.destroyActivityView(); } mBubbleData.clear(); collapseStack(); Loading