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

Commit efc36ab4 authored by Lyn Han's avatar Lyn Han Committed by Automerger Merge Worker
Browse files

Merge "Fix NPE" into rvc-qpr-dev am: 2760473c

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12112578

Change-Id: I36afa5b2d52ed9efa9c87635ee40dcf105ae5321
parents 462ad583 2760473c
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -1586,6 +1586,11 @@ public class BubbleStackView extends FrameLayout
            Log.d(TAG, "setSelectedBubble: " + bubbleToSelect);
        }

        if (bubbleToSelect == null) {
            mBubbleData.setShowingOverflow(false);
            return;
        }

        // Ignore this new bubble only if it is the exact same bubble object. Otherwise, we'll want
        // to re-render it even if it has the same key (equals() returns true). If the currently
        // expanded bubble is removed and instantly re-added, we'll get back a new Bubble instance
@@ -1594,10 +1599,11 @@ public class BubbleStackView extends FrameLayout
        if (mExpandedBubble == bubbleToSelect) {
            return;
        }
        if (bubbleToSelect == null || bubbleToSelect.getKey() != BubbleOverflow.KEY) {
            mBubbleData.setShowingOverflow(false);
        } else {

        if (bubbleToSelect.getKey() == BubbleOverflow.KEY) {
            mBubbleData.setShowingOverflow(true);
        } else {
            mBubbleData.setShowingOverflow(false);
        }

        if (mIsExpanded && mIsExpansionAnimating) {