From a2b672ccd87a1baba5e9d7e5f9d59de8dd12919b Mon Sep 17 00:00:00 2001 From: Vinit Nayak Date: Mon, 27 Apr 2020 18:35:14 -0700 Subject: [PATCH] Enable edge gesture if quickstep has never started Bug: 154580671 Test: Restart phone w/o touching nav bar, back works. Change-Id: I59bd060f2d06d273bc8e1eb1186273902ebe6c8e --- .../systemui/statusbar/phone/EdgeBackGestureHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/EdgeBackGestureHandler.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/EdgeBackGestureHandler.java index f9119c7a010fb..ba8a63428cf68 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/EdgeBackGestureHandler.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/EdgeBackGestureHandler.java @@ -556,7 +556,8 @@ public class EdgeBackGestureHandler extends CurrentUserTracker implements Displa private void updateDisabledForQuickstep() { int rotation = mContext.getResources().getConfiguration().windowConfiguration.getRotation(); - mDisabledForQuickstep = mStartingQuickstepRotation != rotation; + mDisabledForQuickstep = mStartingQuickstepRotation > -1 && + mStartingQuickstepRotation != rotation; } @Override