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

Commit 85428360 authored by Candice Lo's avatar Candice Lo Committed by Android (Google) Code Review
Browse files

Merge "Check the fullscreen magnification state onTransactionCommitted" into main

parents e964aa89 b889819a
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -352,7 +352,13 @@ public class FullscreenMagnificationController implements ComponentCallbacks {
        mTransaction
                .addTransactionCommittedListener(
                        mExecutor,
                        this::showBorder)
                        () -> {
                            if (getState() == ENABLING) {
                                // Ensure that we are in the ENABLING process to avoid performing
                                // animation on a null view.
                                mShowBorderRunnable.run();
                            }
                        })
                .setPosition(mBorderSurfaceControl, -mBorderOffset, -mBorderOffset)
                .setLayer(mBorderSurfaceControl, Integer.MAX_VALUE)
                .show(mBorderSurfaceControl)