diff options
author | John Reck <jreck@google.com> | 2014-10-01 10:38:07 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2014-10-01 10:38:07 -0700 |
commit | 77e4a5250fc6df451999efe508f57968a44b603f (patch) | |
tree | e26c3542b7d6efcc4902c3e384a145938f006c83 /opengl | |
parent | c909e1b2dfa2e47b786d96818f70f6308c5a78be (diff) | |
download | frameworks_base-77e4a5250fc6df451999efe508f57968a44b603f.zip frameworks_base-77e4a5250fc6df451999efe508f57968a44b603f.tar.gz frameworks_base-77e4a5250fc6df451999efe508f57968a44b603f.tar.bz2 |
Re-allow suppressing onDetachedFromWindow
Bug: 17578553
Games seem to be doing this to prevent destruction of their
GL contexts, and they assume it works even if it doesn't. However,
GLSurfaceView is clunky here, so while the app is doing something
questionable we don't really offer a better way. For now revert
back to kitkat behavior.
Change-Id: Icfa9e496279b9cfa47f9bc7f6848d9313caed0d5
Diffstat (limited to 'opengl')
-rw-r--r-- | opengl/java/android/opengl/GLSurfaceView.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/opengl/java/android/opengl/GLSurfaceView.java b/opengl/java/android/opengl/GLSurfaceView.java index 1406f6b..3c76115 100644 --- a/opengl/java/android/opengl/GLSurfaceView.java +++ b/opengl/java/android/opengl/GLSurfaceView.java @@ -595,9 +595,8 @@ public class GLSurfaceView extends SurfaceView implements SurfaceHolder.Callback mDetached = false; } - /** @hide */ @Override - protected void onDetachedFromWindowInternal() { + protected void onDetachedFromWindow() { if (LOG_ATTACH_DETACH) { Log.d(TAG, "onDetachedFromWindow"); } @@ -605,7 +604,7 @@ public class GLSurfaceView extends SurfaceView implements SurfaceHolder.Callback mGLThread.requestExitAndWait(); } mDetached = true; - super.onDetachedFromWindowInternal(); + super.onDetachedFromWindow(); } // ---------------------------------------------------------------------- |