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

Commit 84fbd42c authored by Isaac Katzenelson's avatar Isaac Katzenelson
Browse files

Fix scrolling state in DayView

Bug: 6434694 Regression: On tablet, calendar events on week or day view don't always open
Change-Id: Id7329ff1ae6f98bff3abbc69a102d9deb2992f76
parent 29b93c71
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4252,6 +4252,7 @@ public class DayView extends View implements View.OnCreateContextMenuListener,
                    resetSelectedHour();
                    invalidate();
                }

                if ((mTouchMode & TOUCH_MODE_HSCROLL) != 0) {
                    mTouchMode = TOUCH_MODE_INITIAL_STATE;
                    if (Math.abs(mViewStartX) > mHorizontalSnapBackThreshold) {
@@ -4775,6 +4776,8 @@ public class DayView extends View implements View.OnCreateContextMenuListener,
        eventClickCleanup();
        // Turn off redraw
        mRemeasure = false;
        // Turn off scrolling to make sure the view is in the correct state if we fling back to it
        mScrolling = false;
    }

    private void eventClickCleanup() {