Merge "Do not use sync on divider visibility changed." into tm-qpr-dev am: e94ac0c511
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21493086 Change-Id: I9681ece9e93d5ecefde0dad356da7904c6c25525 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1695,9 +1695,7 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,
|
|||||||
}
|
}
|
||||||
|
|
||||||
mSyncQueue.queue(wct);
|
mSyncQueue.queue(wct);
|
||||||
mSyncQueue.runInSync(t -> {
|
setDividerVisibility(mainStageVisible, null);
|
||||||
setDividerVisibility(mainStageVisible, t);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setDividerVisibility(boolean visible, @Nullable SurfaceControl.Transaction t) {
|
private void setDividerVisibility(boolean visible, @Nullable SurfaceControl.Transaction t) {
|
||||||
@@ -1779,6 +1777,10 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onAnimationEnd(Animator animation) {
|
public void onAnimationEnd(Animator animation) {
|
||||||
|
if (dividerLeash != null && dividerLeash.isValid()) {
|
||||||
|
transaction.setAlpha(dividerLeash, 1);
|
||||||
|
transaction.apply();
|
||||||
|
}
|
||||||
mTransactionPool.release(transaction);
|
mTransactionPool.release(transaction);
|
||||||
mDividerFadeInAnimator = null;
|
mDividerFadeInAnimator = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user