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

Commit 51659c7c authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Fix setSurfaceTexture to handle surface caching"

parents eb02f3ad 53966f6b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -743,6 +743,12 @@ public class TextureView extends View {
            mSurface.release();
        }
        mSurface = surfaceTexture;

        // If the view is visible, update the listener in the new surface to use
        // the existing listener in the view.
        if (((mViewFlags & VISIBILITY_MASK) == VISIBLE)) {
            mSurface.setOnFrameAvailableListener(mUpdateListener);
        }
        mUpdateSurface = true;
        invalidateParentIfNeeded();
    }