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

Commit 9745d080 authored by John Reck's avatar John Reck Committed by Android Git Automerger
Browse files

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

* commit '360ae4dd':
  Force a layout pass if the display rotation changes
parents 7eefa322 360ae4dd
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);