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

Commit ffa76031 authored by Joshua Tsuji's avatar Joshua Tsuji
Browse files

Always showContentVisibility(true) after switch/expand animations.

This usually happens via onSingleTaskDisplayDrawn but this is occassionally not called despite the display drawiing just fine.

Bug: 158787329
Test: open like 200 bubbles
Change-Id: I704f8e4246eb96cac5a62803f4e4b7c11f01b046
parent 5731877f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -494,6 +494,11 @@ public class BubbleExpandedView extends LinearLayout {
                    + " bubble=" + getBubbleKey());
        }
        final float alpha = visibility ? 1f : 0f;

        if (alpha == mActivityView.getAlpha()) {
            return;
        }

        mPointerView.setAlpha(alpha);
        if (mActivityView != null) {
            mActivityView.setAlpha(alpha);
+3 −0
Original line number Diff line number Diff line
@@ -1901,6 +1901,8 @@ public class BubbleStackView extends FrameLayout
                                .withEndActions(() -> {
                                    if (mExpandedBubble != null
                                            && mExpandedBubble.getExpandedView() != null) {
                                        mExpandedBubble.getExpandedView()
                                                .setContentVisibility(true);
                                        mExpandedBubble.getExpandedView()
                                                .setSurfaceZOrderedOnTop(false);
                                    }
@@ -2045,6 +2047,7 @@ public class BubbleStackView extends FrameLayout
                    })
                    .withEndActions(() -> {
                        if (mExpandedBubble != null && mExpandedBubble.getExpandedView() != null) {
                            mExpandedBubble.getExpandedView().setContentVisibility(true);
                            mExpandedBubble.getExpandedView().setSurfaceZOrderedOnTop(false);
                        }