navigation: don't run gesture animation if gestures are not enabled am: 931bc2a38e

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517673

Change-Id: I4db182fc09187b88644c0b144048e35413d0335f
This commit is contained in:
Thales Lima
2021-08-11 18:29:21 +00:00
committed by Automerger Merge Worker
@@ -173,7 +173,9 @@ public class FallbackSwipeHandler extends
@Override
protected void notifyGestureAnimationStartToRecents() {
if (mRunningOverHome) {
mRecentsView.onGestureAnimationStartOnHome(mGestureState.getRunningTask());
if (SysUINavigationMode.getMode(mContext).hasGestures) {
mRecentsView.onGestureAnimationStartOnHome(mGestureState.getRunningTask());
}
} else {
super.notifyGestureAnimationStartToRecents();
}