Merge "Sync surface position for animation in core" into tm-qpr-dev am: ba151e624d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19048646 Change-Id: Ib4d1ee80f06c76f85411a8a31dbf74acb7eaa470 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -3216,6 +3216,10 @@ class WindowContainer<E extends WindowContainer> extends ConfigurationContainer<
|
|||||||
|
|
||||||
void resetSurfacePositionForAnimationLeash(Transaction t) {
|
void resetSurfacePositionForAnimationLeash(Transaction t) {
|
||||||
t.setPosition(mSurfaceControl, 0, 0);
|
t.setPosition(mSurfaceControl, 0, 0);
|
||||||
|
if (mSyncState != SYNC_STATE_NONE && t != mSyncTransaction) {
|
||||||
|
// Avoid restoring to old position if the sync transaction is applied later.
|
||||||
|
mSyncTransaction.setPosition(mSurfaceControl, 0, 0);
|
||||||
|
}
|
||||||
mLastSurfacePosition.set(0, 0);
|
mLastSurfacePosition.set(0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user