Merge "Use sync transaction for insets animation" into sc-v2-dev am: eb1cd0212d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15824243 Change-Id: I2ef22635fd83a1263b605b73d464b9e7f8e59fcf
This commit is contained in:
@@ -267,7 +267,7 @@ class InsetsSourceProvider {
|
||||
&& mWin.okToDisplay()) {
|
||||
mWin.applyWithNextDraw(mSetLeashPositionConsumer);
|
||||
} else {
|
||||
mSetLeashPositionConsumer.accept(mWin.getPendingTransaction());
|
||||
mSetLeashPositionConsumer.accept(mWin.getSyncTransaction());
|
||||
}
|
||||
}
|
||||
if (mServerVisible && !mLastSourceFrame.equals(mSource.getFrame())) {
|
||||
@@ -331,7 +331,7 @@ class InsetsSourceProvider {
|
||||
if (getSource().getType() == ITYPE_IME) {
|
||||
setClientVisible(target.getRequestedVisibility(mSource.getType()));
|
||||
}
|
||||
final Transaction t = mDisplayContent.getPendingTransaction();
|
||||
final Transaction t = mDisplayContent.getSyncTransaction();
|
||||
mWin.startAnimation(t, mAdapter, !mClientVisible /* hidden */,
|
||||
ANIMATION_TYPE_INSETS_CONTROL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user