summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2014-11-05 14:11:32 +0100
committerSelim Cinek <cinek@google.com>2014-11-05 18:12:27 +0100
commite52abb3e91703b6f2d9d65733780de41aaf52afa (patch)
tree032bc426e7324251aa1162ae0995987bc7f0c4a6 /packages
parent9bd9d0c96a37c0973f74809961a0f9508f65324e (diff)
downloadframeworks_base-e52abb3e91703b6f2d9d65733780de41aaf52afa.zip
frameworks_base-e52abb3e91703b6f2d9d65733780de41aaf52afa.tar.gz
frameworks_base-e52abb3e91703b6f2d9d65733780de41aaf52afa.tar.bz2
Adapted HUN behavior when swiping vertically
It's not dismissed anymore but pushed into the shade when swiping up. Also, when swiping down, we now dimiss the HUN. Bug: 15594813 Change-Id: I0b6a761bebbe281e31bf3b1e20704e2e5da07861
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
index e40bc5a..11ff272 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
@@ -397,14 +397,11 @@ public class HeadsUpNotificationView extends FrameLayout implements SwipeHelper.
final float daX = Math.abs(ev.getX() - mFirstX);
final float daY = Math.abs(dY);
if (!mConsuming && daX < daY && daY > mTouchSlop) {
+ releaseAndClose();
if (dY > 0) {
if (DEBUG_EDGE_SWIPE) Log.d(TAG, "found an open");
mBar.animateExpandNotificationsPanel();
}
- if (dY < 0) {
- if (DEBUG_EDGE_SWIPE) Log.d(TAG, "found a close");
- mBar.onHeadsUpDismissed();
- }
mConsuming = true;
}
break;