Skip to content

Commit 76e07e7

Browse files
Jim MillerAndroid (Google) Code Review
authored andcommitted
Merge "Fix 6474712: Disable the google gesture on prime while notifications are open" into jb-dev
2 parents 01119de + 670d9dd commit 76e07e7

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,7 @@ protected void updateExpansionStates() {
751751
protected abstract void tick(IBinder key, StatusBarNotification n, boolean firstTime);
752752
protected abstract void updateExpandedViewPos(int expandedPosition);
753753
protected abstract int getExpandedViewMaxHeight();
754+
protected abstract boolean isStatusBarExpanded();
754755

755756
protected boolean isTopNotification(ViewGroup parent, NotificationData.Entry entry) {
756757
return parent.indexOfChild(entry.row) == 0;

packages/SystemUI/src/com/android/systemui/statusbar/DelegateViewHelper.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ public void setOrientation(int orientation) {
5353
}
5454

5555
public boolean onInterceptTouchEvent(MotionEvent event) {
56+
if (mBar.isStatusBarExpanded()) {
57+
return false;
58+
}
5659
switch (event.getAction()) {
5760
case MotionEvent.ACTION_DOWN:
5861
mDownPoint[0] = event.getX();

packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,5 +2109,10 @@ public void run() {
21092109
protected void haltTicker() {
21102110
mTicker.halt();
21112111
}
2112+
2113+
@Override
2114+
protected boolean isStatusBarExpanded() {
2115+
return mExpanded;
2116+
}
21122117
}
21132118

packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1618,6 +1618,11 @@ protected void haltTicker() {
16181618
@Override
16191619
protected void updateExpandedViewPos(int expandedPosition) {
16201620
}
1621+
1622+
@Override
1623+
protected boolean isStatusBarExpanded() {
1624+
return mNotificationPanel.getVisibility() == View.VISIBLE;
1625+
}
16211626
}
16221627

16231628

0 commit comments

Comments
 (0)