Properly close Surface when done.
Surface.destroy was not being called. Leading to warning from StrictMode. Fixes bug 8388527. Change-Id: I472fb57ed2c3f6389e53d8f020f3b22b2d0740c8
This commit is contained in:
@@ -234,6 +234,7 @@ class ScreenRotationAnimation {
|
||||
mSurfaceControl.setLayer(FREEZE_LAYER + 1);
|
||||
mSurfaceControl.setAlpha(0);
|
||||
mSurfaceControl.show();
|
||||
sur.destroy();
|
||||
} catch (SurfaceControl.OutOfResourcesException e) {
|
||||
Slog.w(TAG, "Unable to allocate freeze surface", e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user