Merge "ViewRootImpl: Call surface destroy callback after layout pass" into rvc-dev am: 276abcb6b3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12108557 Change-Id: I59f7525c8f2230991d093e50ddbadd6f91ce7b6d
This commit is contained in:
@@ -2725,7 +2725,6 @@ public final class ViewRootImpl implements ViewParent,
|
||||
mAttachInfo.mThreadedRenderer.isEnabled()) {
|
||||
mAttachInfo.mThreadedRenderer.destroy();
|
||||
}
|
||||
notifySurfaceDestroyed();
|
||||
} else if ((surfaceReplaced
|
||||
|| surfaceSizeChanged || windowRelayoutWasForced || colorModeChanged)
|
||||
&& mSurfaceHolder == null
|
||||
@@ -2956,6 +2955,10 @@ public final class ViewRootImpl implements ViewParent,
|
||||
}
|
||||
}
|
||||
|
||||
if (surfaceDestroyed) {
|
||||
notifySurfaceDestroyed();
|
||||
}
|
||||
|
||||
if (triggerGlobalLayoutListener) {
|
||||
mAttachInfo.mRecomputeGlobalAttributes = false;
|
||||
mAttachInfo.mTreeObserver.dispatchOnGlobalLayout();
|
||||
|
||||
Reference in New Issue
Block a user