Merge "Re-allow suppressing onDetachedFromWindow" into lmp-dev

This commit is contained in:
John Reck
2014-10-01 19:11:02 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 6 deletions

View File

@@ -256,9 +256,8 @@ public class SurfaceView extends View {
updateWindow(false, false);
}
/** @hide */
@Override
protected void onDetachedFromWindowInternal() {
protected void onDetachedFromWindow() {
if (mGlobalListenersAdded) {
ViewTreeObserver observer = getViewTreeObserver();
observer.removeOnScrollChangedListener(mScrollChangedListener);
@@ -280,7 +279,7 @@ public class SurfaceView extends View {
mSession = null;
mLayout.token = null;
super.onDetachedFromWindowInternal();
super.onDetachedFromWindow();
}
@Override

View File

@@ -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();
}
// ----------------------------------------------------------------------