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

Commit 360ae4dd authored by John Reck's avatar John Reck Committed by Android Git Automerger
Browse files

am f6bc102c: am 695e1aa0: Force a layout pass if the display rotation changes

* commit 'f6bc102c':
  Force a layout pass if the display rotation changes
parents 02a5f562 f6bc102c
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -392,7 +392,11 @@ public class GLRootView extends GLSurfaceView


        mRenderRequested = false;
        mRenderRequested = false;


        if ((mFlags & FLAG_NEED_LAYOUT) != 0) layoutContentPane();
        if ((mOrientationSource != null
                && mDisplayRotation != mOrientationSource.getDisplayRotation())
                || (mFlags & FLAG_NEED_LAYOUT) != 0) {
            layoutContentPane();
        }


        mCanvas.save(GLCanvas.SAVE_FLAG_ALL);
        mCanvas.save(GLCanvas.SAVE_FLAG_ALL);
        rotateCanvas(-mCompensation);
        rotateCanvas(-mCompensation);