OSDN Git Service

Re-allow suppressing onDetachedFromWindow
authorJohn Reck <jreck@google.com>
Wed, 1 Oct 2014 17:38:07 +0000 (10:38 -0700)
committerJohn Reck <jreck@google.com>
Wed, 1 Oct 2014 17:38:07 +0000 (10:38 -0700)
commit77e4a5250fc6df451999efe508f57968a44b603f
treee26c3542b7d6efcc4902c3e384a145938f006c83
parentc909e1b2dfa2e47b786d96818f70f6308c5a78be
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
core/java/android/view/SurfaceView.java
opengl/java/android/opengl/GLSurfaceView.java