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

Commit 03df0834 authored by John Reck's avatar John Reck
Browse files

Fix maps resume being blank

Bug: 30889568

Fixes an issue where mLayer didn't have
the mSurface set on it in certain resume
scenarios.

Change-Id: Ib75065d3d75e6141d6cd8f306584f6a569b9907c
parent 60ab8d07
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -379,9 +379,9 @@ public class TextureView extends View {
            if (createNewSurface) {
                // Create a new SurfaceTexture for the layer.
                mSurface = new SurfaceTexture(false);
                mLayer.setSurfaceTexture(mSurface);
                nCreateNativeWindow(mSurface);
            }
            mLayer.setSurfaceTexture(mSurface);
            mSurface.setDefaultBufferSize(getWidth(), getHeight());
            mSurface.setOnFrameAvailableListener(mUpdateListener, mAttachInfo.mHandler);