Merge "Reset original task surface after reparenting to PiP" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f69700115d
@@ -2048,6 +2048,9 @@ class RootWindowContainer extends WindowContainer<DisplayContent>
|
|||||||
task.mLastRecentsAnimationTransaction,
|
task.mLastRecentsAnimationTransaction,
|
||||||
task.mLastRecentsAnimationOverlay);
|
task.mLastRecentsAnimationOverlay);
|
||||||
task.clearLastRecentsAnimationTransaction(false /* forceRemoveOverlay */);
|
task.clearLastRecentsAnimationTransaction(false /* forceRemoveOverlay */);
|
||||||
|
} else {
|
||||||
|
// Reset the original task surface
|
||||||
|
task.resetSurfaceControlTransforms();
|
||||||
}
|
}
|
||||||
|
|
||||||
// The organized TaskFragment is becoming empty because this activity is reparented
|
// The organized TaskFragment is becoming empty because this activity is reparented
|
||||||
|
|||||||
@@ -5975,8 +5975,13 @@ class Task extends TaskFragment {
|
|||||||
mLastRecentsAnimationTransaction = null;
|
mLastRecentsAnimationTransaction = null;
|
||||||
mLastRecentsAnimationOverlay = null;
|
mLastRecentsAnimationOverlay = null;
|
||||||
// reset also the crop and transform introduced by mLastRecentsAnimationTransaction
|
// reset also the crop and transform introduced by mLastRecentsAnimationTransaction
|
||||||
getPendingTransaction().setMatrix(mSurfaceControl, Matrix.IDENTITY_MATRIX, new float[9])
|
resetSurfaceControlTransforms();
|
||||||
|
}
|
||||||
|
|
||||||
|
void resetSurfaceControlTransforms() {
|
||||||
|
getSyncTransaction().setMatrix(mSurfaceControl, Matrix.IDENTITY_MATRIX, new float[9])
|
||||||
.setWindowCrop(mSurfaceControl, null)
|
.setWindowCrop(mSurfaceControl, null)
|
||||||
|
.setShadowRadius(mSurfaceControl, 0)
|
||||||
.setCornerRadius(mSurfaceControl, 0);
|
.setCornerRadius(mSurfaceControl, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user