Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 931bc2a3 authored by Thales Lima's avatar Thales Lima
Browse files

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

Makes the animation when using 3 button navigation be closer to what we
have in non fallback mode, also fixing the problem when fallback recents
just started and don't have any views.

Fix 194487871
Test: manual with gestures, 2 button and 3 button nav

Change-Id: If3925d6bef1d14f51b86169d06607786972f5f1f
(cherry picked from commit 8d49c4bb)
parent 0b3b2921
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -173,7 +173,9 @@ public class FallbackSwipeHandler extends
    @Override
    protected void notifyGestureAnimationStartToRecents() {
        if (mRunningOverHome) {
            if (SysUINavigationMode.getMode(mContext).hasGestures) {
                mRecentsView.onGestureAnimationStartOnHome(mGestureState.getRunningTask());
            }
        } else {
            super.notifyGestureAnimationStartToRecents();
        }