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

Commit e78b8003 authored by Romain Guy's avatar Romain Guy
Browse files

Finish current Canvas operations then resume previous Canvas

Bug #8297260

Change-Id: Ia30bb61ff5db805ec5d57f5e4c22c275f649ecdb
parent fe28ef84
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -89,13 +89,13 @@ class GLES20RenderLayer extends GLES20Layer {

    @Override
    void end(Canvas currentCanvas) {
        if (currentCanvas instanceof GLES20Canvas) {
            ((GLES20Canvas) currentCanvas).resume();
        }
        HardwareCanvas canvas = getCanvas();
        if (canvas != null) {
            canvas.onPostDraw();
        }
        if (currentCanvas instanceof GLES20Canvas) {
            ((GLES20Canvas) currentCanvas).resume();
        }
    }

    @Override