Merge "Use isInTransition() to detect animations" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b35f48c808
@@ -16,10 +16,6 @@
|
|||||||
|
|
||||||
package com.android.server.wm;
|
package com.android.server.wm;
|
||||||
|
|
||||||
import static com.android.server.wm.SurfaceAnimator.ANIMATION_TYPE_APP_TRANSITION;
|
|
||||||
import static com.android.server.wm.WindowContainer.AnimationFlags.PARENTS;
|
|
||||||
import static com.android.server.wm.WindowContainer.AnimationFlags.TRANSITION;
|
|
||||||
|
|
||||||
import android.app.compat.CompatChanges;
|
import android.app.compat.CompatChanges;
|
||||||
import android.compat.annotation.ChangeId;
|
import android.compat.annotation.ChangeId;
|
||||||
import android.os.IBinder;
|
import android.os.IBinder;
|
||||||
@@ -101,8 +97,7 @@ class ActivityRecordInputSink {
|
|||||||
mToken = inputChannel.getToken();
|
mToken = inputChannel.getToken();
|
||||||
mInputEventReceiver = createInputEventReceiver(inputChannel);
|
mInputEventReceiver = createInputEventReceiver(inputChannel);
|
||||||
}
|
}
|
||||||
if (mDisabled || !mIsCompatEnabled || mActivityRecord.isAnimating(TRANSITION | PARENTS,
|
if (mDisabled || !mIsCompatEnabled || mActivityRecord.isInTransition()) {
|
||||||
ANIMATION_TYPE_APP_TRANSITION)) {
|
|
||||||
// TODO(b/208662670): Investigate if we can have feature active during animations.
|
// TODO(b/208662670): Investigate if we can have feature active during animations.
|
||||||
mInputWindowHandleWrapper.setToken(null);
|
mInputWindowHandleWrapper.setToken(null);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user