Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarGestureHelper.java +3 −1 Original line number Diff line number Diff line Loading @@ -74,6 +74,7 @@ public class NavigationBarGestureHelper implements TunerService.Tunable, Gesture private boolean mDownOnRecents; private VelocityTracker mVelocityTracker; private boolean mIsInScreenPinning; private boolean mNotificationsVisibleOnDown; private boolean mDockWindowEnabled; private boolean mDockWindowTouchSlopExceeded; Loading Loading @@ -108,6 +109,7 @@ public class NavigationBarGestureHelper implements TunerService.Tunable, Gesture public boolean onInterceptTouchEvent(MotionEvent event) { if (event.getActionMasked() == MotionEvent.ACTION_DOWN) { mIsInScreenPinning = mNavigationBarView.inScreenPinning(); mNotificationsVisibleOnDown = !mStatusBar.isPresenterFullyCollapsed(); } if (!canHandleGestures()) { return false; Loading Loading @@ -274,7 +276,7 @@ public class NavigationBarGestureHelper implements TunerService.Tunable, Gesture private boolean canHandleGestures() { return !mIsInScreenPinning && !mStatusBar.isKeyguardShowing() && mStatusBar.isPresenterFullyCollapsed(); && !mNotificationsVisibleOnDown; } private int calculateDragMode() { Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarGestureHelper.java +3 −1 Original line number Diff line number Diff line Loading @@ -74,6 +74,7 @@ public class NavigationBarGestureHelper implements TunerService.Tunable, Gesture private boolean mDownOnRecents; private VelocityTracker mVelocityTracker; private boolean mIsInScreenPinning; private boolean mNotificationsVisibleOnDown; private boolean mDockWindowEnabled; private boolean mDockWindowTouchSlopExceeded; Loading Loading @@ -108,6 +109,7 @@ public class NavigationBarGestureHelper implements TunerService.Tunable, Gesture public boolean onInterceptTouchEvent(MotionEvent event) { if (event.getActionMasked() == MotionEvent.ACTION_DOWN) { mIsInScreenPinning = mNavigationBarView.inScreenPinning(); mNotificationsVisibleOnDown = !mStatusBar.isPresenterFullyCollapsed(); } if (!canHandleGestures()) { return false; Loading Loading @@ -274,7 +276,7 @@ public class NavigationBarGestureHelper implements TunerService.Tunable, Gesture private boolean canHandleGestures() { return !mIsInScreenPinning && !mStatusBar.isKeyguardShowing() && mStatusBar.isPresenterFullyCollapsed(); && !mNotificationsVisibleOnDown; } private int calculateDragMode() { Loading