Merge "Make sure to clear outdated screenshot of splitting tasks" into tm-qpr-dev am: 64dd311dec am: f81b7bcd96
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22624779 Change-Id: I096baa4188904003acd94cac4b192dc54e94e4c2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -165,6 +165,10 @@ public class SplitDecorManager extends WindowlessWindowManager {
|
||||
t.remove(mGapBackgroundLeash);
|
||||
mGapBackgroundLeash = null;
|
||||
}
|
||||
if (mScreenshot != null) {
|
||||
t.remove(mScreenshot);
|
||||
mScreenshot = null;
|
||||
}
|
||||
mHostLeash = null;
|
||||
mIcon = null;
|
||||
mResizingIconView = null;
|
||||
@@ -324,6 +328,8 @@ public class SplitDecorManager extends WindowlessWindowManager {
|
||||
if (!mShown && mIsResizing && !mOldBounds.equals(mResizingBounds)) {
|
||||
if (mScreenshotAnimator != null && mScreenshotAnimator.isRunning()) {
|
||||
mScreenshotAnimator.cancel();
|
||||
} else if (mScreenshot != null) {
|
||||
t.remove(mScreenshot);
|
||||
}
|
||||
|
||||
mTempRect.set(mOldBounds);
|
||||
@@ -340,6 +346,8 @@ public class SplitDecorManager extends WindowlessWindowManager {
|
||||
if (!mShown && mIsResizing && !mOldBounds.equals(mResizingBounds)) {
|
||||
if (mScreenshotAnimator != null && mScreenshotAnimator.isRunning()) {
|
||||
mScreenshotAnimator.cancel();
|
||||
} else if (mScreenshot != null) {
|
||||
t.remove(mScreenshot);
|
||||
}
|
||||
|
||||
mScreenshot = screenshot;
|
||||
|
||||
Reference in New Issue
Block a user