Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 140e3f88 authored by Selim Cinek's avatar Selim Cinek Committed by Android (Google) Code Review
Browse files

Merge "Fixed a bug where the HUNs were not clickable" into lmp-mr1-dev

parents 6d7065f5 9bd9d0c9
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -54,7 +54,6 @@ public class HeadsUpNotificationView extends FrameLayout implements SwipeHelper.
    private EdgeSwipeHelper mEdgeSwipeHelper;

    private PhoneStatusBar mBar;
    private ExpandHelper mExpandHelper;

    private long mStartTouchTime;
    private ViewGroup mContentHolder;
@@ -206,7 +205,6 @@ public class HeadsUpNotificationView extends FrameLayout implements SwipeHelper.

        int minHeight = getResources().getDimensionPixelSize(R.dimen.notification_min_height);
        int maxHeight = getResources().getDimensionPixelSize(R.dimen.notification_max_height);
        mExpandHelper = new ExpandHelper(getContext(), this, minHeight, maxHeight);

        mContentHolder = (ViewGroup) findViewById(R.id.content_holder);
        mContentHolder.setOutlineProvider(CONTENT_HOLDER_OUTLINE_PROVIDER);
@@ -227,7 +225,6 @@ public class HeadsUpNotificationView extends FrameLayout implements SwipeHelper.
        }
        return mEdgeSwipeHelper.onInterceptTouchEvent(ev)
                || mSwipeHelper.onInterceptTouchEvent(ev)
                || mExpandHelper.onInterceptTouchEvent(ev)
                || super.onInterceptTouchEvent(ev);
    }

@@ -255,7 +252,6 @@ public class HeadsUpNotificationView extends FrameLayout implements SwipeHelper.
        mBar.resetHeadsUpDecayTimer();
        return mEdgeSwipeHelper.onTouchEvent(ev)
                || mSwipeHelper.onTouchEvent(ev)
                || mExpandHelper.onTouchEvent(ev)
                || super.onTouchEvent(ev);
    }

@@ -400,7 +396,7 @@ public class HeadsUpNotificationView extends FrameLayout implements SwipeHelper.
                    final float dY = ev.getY() - mFirstY;
                    final float daX = Math.abs(ev.getX() - mFirstX);
                    final float daY = Math.abs(dY);
                    if (!mConsuming && (4f * daX) < daY && daY > mTouchSlop) {
                    if (!mConsuming && daX < daY && daY > mTouchSlop) {
                        if (dY > 0) {
                            if (DEBUG_EDGE_SWIPE) Log.d(TAG, "found an open");
                            mBar.animateExpandNotificationsPanel();