Merge "Make sure to clear outdated screenshot of splitting tasks" into tm-qpr-dev
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