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

Commit 58ed4d19 authored by Doris Liu's avatar Doris Liu
Browse files

Fix camera controls blink on startup

Bug: 9052837
Change-Id: Ie15b812c6e6e7879d29d96a345173a2130b2fe91
parent 286afab1
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1423,6 +1423,11 @@ public class PhotoView extends GLView {

    @Override
    protected void render(GLCanvas canvas) {
        if (mFirst) {
            // Make sure the fields are properly initialized before checking
            // whether isCamera()
            mPictures.get(0).reload();
        }
        // Check if the camera preview occupies the full screen.
        boolean full = !mFilmMode && mPictures.get(0).isCamera()
                && mPositionController.isCenter()