Loading packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java +1 −4 Original line number Original line Diff line number Diff line Loading @@ -397,14 +397,11 @@ public class HeadsUpNotificationView extends FrameLayout implements SwipeHelper. final float daX = Math.abs(ev.getX() - mFirstX); final float daX = Math.abs(ev.getX() - mFirstX); final float daY = Math.abs(dY); final float daY = Math.abs(dY); if (!mConsuming && daX < daY && daY > mTouchSlop) { if (!mConsuming && daX < daY && daY > mTouchSlop) { releaseAndClose(); if (dY > 0) { if (dY > 0) { if (DEBUG_EDGE_SWIPE) Log.d(TAG, "found an open"); if (DEBUG_EDGE_SWIPE) Log.d(TAG, "found an open"); mBar.animateExpandNotificationsPanel(); mBar.animateExpandNotificationsPanel(); } } if (dY < 0) { if (DEBUG_EDGE_SWIPE) Log.d(TAG, "found a close"); mBar.onHeadsUpDismissed(); } mConsuming = true; mConsuming = true; } } break; break; Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java +1 −4 Original line number Original line Diff line number Diff line Loading @@ -397,14 +397,11 @@ public class HeadsUpNotificationView extends FrameLayout implements SwipeHelper. final float daX = Math.abs(ev.getX() - mFirstX); final float daX = Math.abs(ev.getX() - mFirstX); final float daY = Math.abs(dY); final float daY = Math.abs(dY); if (!mConsuming && daX < daY && daY > mTouchSlop) { if (!mConsuming && daX < daY && daY > mTouchSlop) { releaseAndClose(); if (dY > 0) { if (dY > 0) { if (DEBUG_EDGE_SWIPE) Log.d(TAG, "found an open"); if (DEBUG_EDGE_SWIPE) Log.d(TAG, "found an open"); mBar.animateExpandNotificationsPanel(); mBar.animateExpandNotificationsPanel(); } } if (dY < 0) { if (DEBUG_EDGE_SWIPE) Log.d(TAG, "found a close"); mBar.onHeadsUpDismissed(); } mConsuming = true; mConsuming = true; } } break; break; Loading