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