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

Commit 4d73736a authored by Liran Binyamin's avatar Liran Binyamin Committed by Android (Google) Code Review
Browse files

Merge "Fix jank when rotating an expanded bubble" into main

parents 076df248 70b67510
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -949,7 +949,9 @@ public class BubbleExpandedView extends LinearLayout {
        if (mTaskView != null
                && mTaskView.getVisibility() == VISIBLE
                && mTaskView.isAttachedToWindow()) {
            mTaskView.onLocationChanged();
            // post this to the looper, because if the device orientation just changed, we need to
            // let the current shell transition complete before updating the task view bounds.
            post(() -> mTaskView.onLocationChanged());
        }
        if (mIsOverflow) {
            // post this to the looper so that the view has a chance to be laid out before it can
+9 −8
Original line number Diff line number Diff line
@@ -1012,15 +1012,15 @@ public class BubbleStackView extends FrameLayout
                    }

                    if (mIsExpanded) {
                        // Re-draw bubble row and pointer for new orientation.
                        beforeExpandedViewAnimation();
                        // update the expanded view and pointer location for the new orientation.
                        hideFlyoutImmediate();
                        mExpandedViewContainer.setAlpha(0f);
                        updateExpandedView();
                        updateOverflowVisibility();
                        updatePointerPosition(false /* forIme */);
                        mExpandedAnimationController.expandFromStack(() -> {
                            afterExpandedViewAnimation();
                            mExpandedViewContainer.setVisibility(VISIBLE);
                        updatePointerPosition(false);
                        requestUpdate();
                        showManageMenu(mShowingManage);
                        } /* after */);

                        PointF p = mPositioner.getExpandedBubbleXY(getBubbleIndex(mExpandedBubble),
                                getState());
                        final float translationY = mPositioner.getExpandedViewY(mExpandedBubble,
@@ -1029,6 +1029,7 @@ public class BubbleStackView extends FrameLayout
                        mExpandedViewContainer.setTranslationY(translationY);
                        mExpandedViewContainer.setAlpha(1f);
                    }

                    removeOnLayoutChangeListener(mOrientationChangedListener);
                };
        final float maxDismissSize = getResources().getDimensionPixelSize(