Loading services/core/java/com/android/server/wm/DisplayContent.java +10 −4 Original line number Original line Diff line number Diff line Loading @@ -3703,13 +3703,19 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo .show(mSplitScreenDividerAnchor); .show(mSplitScreenDividerAnchor); scheduleAnimation(); scheduleAnimation(); } else { } else { mAppAnimationLayer.destroy(); // At this time mBoostedAppAnimationLayer may be used for animating, // and ResizeableActivity is in it. mBoostedAppAnimationLayer.destroy() // can also destroy the surface of ResizeableActivity, but the surface will // be used after. So change to use transaction to call destroy to delay it, // and ResizeableActivity is not in mBoostedAppAnimationLayer. getPendingTransaction() .destroy(mAppAnimationLayer) .destroy(mBoostedAppAnimationLayer) .destroy(mHomeAppAnimationLayer) .destroy(mSplitScreenDividerAnchor); mAppAnimationLayer = null; mAppAnimationLayer = null; mBoostedAppAnimationLayer.destroy(); mBoostedAppAnimationLayer = null; mBoostedAppAnimationLayer = null; mHomeAppAnimationLayer.destroy(); mHomeAppAnimationLayer = null; mHomeAppAnimationLayer = null; mSplitScreenDividerAnchor.destroy(); mSplitScreenDividerAnchor = null; mSplitScreenDividerAnchor = null; } } } } Loading Loading
services/core/java/com/android/server/wm/DisplayContent.java +10 −4 Original line number Original line Diff line number Diff line Loading @@ -3703,13 +3703,19 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo .show(mSplitScreenDividerAnchor); .show(mSplitScreenDividerAnchor); scheduleAnimation(); scheduleAnimation(); } else { } else { mAppAnimationLayer.destroy(); // At this time mBoostedAppAnimationLayer may be used for animating, // and ResizeableActivity is in it. mBoostedAppAnimationLayer.destroy() // can also destroy the surface of ResizeableActivity, but the surface will // be used after. So change to use transaction to call destroy to delay it, // and ResizeableActivity is not in mBoostedAppAnimationLayer. getPendingTransaction() .destroy(mAppAnimationLayer) .destroy(mBoostedAppAnimationLayer) .destroy(mHomeAppAnimationLayer) .destroy(mSplitScreenDividerAnchor); mAppAnimationLayer = null; mAppAnimationLayer = null; mBoostedAppAnimationLayer.destroy(); mBoostedAppAnimationLayer = null; mBoostedAppAnimationLayer = null; mHomeAppAnimationLayer.destroy(); mHomeAppAnimationLayer = null; mHomeAppAnimationLayer = null; mSplitScreenDividerAnchor.destroy(); mSplitScreenDividerAnchor = null; mSplitScreenDividerAnchor = null; } } } } Loading