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

Commit bf382aa7 authored by Bryce Lee's avatar Bryce Lee Committed by android-build-merger
Browse files

Merge "Limit creating new surface for legacy apps to size changes." into oc-dev

am: d5231256

Change-Id: I010d9c6008c35cac3d2b4e05caa8c3e9e2843ed6
parents 9405262a d5231256
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -641,7 +641,7 @@ public class SurfaceView extends View implements ViewRootImpl.WindowStoppedCallb
                        mSurface.copyFrom(mSurfaceControl);
                    }

                    if (getContext().getApplicationInfo().targetSdkVersion
                    if (sizeChanged && getContext().getApplicationInfo().targetSdkVersion
                            < Build.VERSION_CODES.O) {
                        // Some legacy applications use the underlying native {@link Surface} object
                        // as a key to whether anything has changed. In these cases, updates to the