Merge "Use sync transaction for insets animation" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
eb1cd0212d
@@ -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