Loading packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +1 −1 Original line number Diff line number Diff line Loading @@ -763,7 +763,7 @@ public abstract class BaseStatusBar extends SystemUI implements protected abstract void tick(IBinder key, StatusBarNotification n, boolean firstTime); protected abstract void updateExpandedViewPos(int expandedPosition); protected abstract int getExpandedViewMaxHeight(); protected abstract boolean isStatusBarExpanded(); protected abstract boolean shouldDisableNavbarGestures(); protected boolean isTopNotification(ViewGroup parent, NotificationData.Entry entry) { return parent.indexOfChild(entry.row) == 0; Loading packages/SystemUI/src/com/android/systemui/statusbar/DelegateViewHelper.java +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ public class DelegateViewHelper { } public boolean onInterceptTouchEvent(MotionEvent event) { if (mBar.isStatusBarExpanded()) { if (mBar.shouldDisableNavbarGestures()) { return false; } switch (event.getAction()) { Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +2 −2 Original line number Diff line number Diff line Loading @@ -2111,8 +2111,8 @@ public class PhoneStatusBar extends BaseStatusBar { } @Override protected boolean isStatusBarExpanded() { return mExpanded; protected boolean shouldDisableNavbarGestures() { return mExpanded || (mDisabled & StatusBarManager.DISABLE_HOME) != 0; } } packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java +3 −2 Original line number Diff line number Diff line Loading @@ -1620,8 +1620,9 @@ public class TabletStatusBar extends BaseStatusBar implements } @Override protected boolean isStatusBarExpanded() { return mNotificationPanel.getVisibility() == View.VISIBLE; protected boolean shouldDisableNavbarGestures() { return mNotificationPanel.getVisibility() == View.VISIBLE || (mDisabled & StatusBarManager.DISABLE_HOME) != 0; } } Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +1 −1 Original line number Diff line number Diff line Loading @@ -763,7 +763,7 @@ public abstract class BaseStatusBar extends SystemUI implements protected abstract void tick(IBinder key, StatusBarNotification n, boolean firstTime); protected abstract void updateExpandedViewPos(int expandedPosition); protected abstract int getExpandedViewMaxHeight(); protected abstract boolean isStatusBarExpanded(); protected abstract boolean shouldDisableNavbarGestures(); protected boolean isTopNotification(ViewGroup parent, NotificationData.Entry entry) { return parent.indexOfChild(entry.row) == 0; Loading
packages/SystemUI/src/com/android/systemui/statusbar/DelegateViewHelper.java +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ public class DelegateViewHelper { } public boolean onInterceptTouchEvent(MotionEvent event) { if (mBar.isStatusBarExpanded()) { if (mBar.shouldDisableNavbarGestures()) { return false; } switch (event.getAction()) { Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +2 −2 Original line number Diff line number Diff line Loading @@ -2111,8 +2111,8 @@ public class PhoneStatusBar extends BaseStatusBar { } @Override protected boolean isStatusBarExpanded() { return mExpanded; protected boolean shouldDisableNavbarGestures() { return mExpanded || (mDisabled & StatusBarManager.DISABLE_HOME) != 0; } }
packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java +3 −2 Original line number Diff line number Diff line Loading @@ -1620,8 +1620,9 @@ public class TabletStatusBar extends BaseStatusBar implements } @Override protected boolean isStatusBarExpanded() { return mNotificationPanel.getVisibility() == View.VISIBLE; protected boolean shouldDisableNavbarGestures() { return mNotificationPanel.getVisibility() == View.VISIBLE || (mDisabled & StatusBarManager.DISABLE_HOME) != 0; } } Loading