Fix BackdropFrameRenderer leak

Make sure to stop the thread when the window gets detached. When dismissing
the docked/fullscreen stack with the divider, we stop the activity while
we are still in resizing mode.

Bug: 28054032
Change-Id: I2d5d0ffaa9bc47e4d5252414b9a045beaebb7a69
This commit is contained in:
Jorim Jaggi
2016-04-08 14:13:30 -07:00
parent 0cc0381714
commit b2005a0217

View File

@@ -1458,6 +1458,8 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind
st.menu.close();
}
releaseThreadedRenderer();
if (mWindowResizeCallbacksAdded) {
getViewRootImpl().removeWindowCallbacks(this);
mWindowResizeCallbacksAdded = false;