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

Commit befa15c0 authored by Isaac Katzenelson's avatar Isaac Katzenelson
Browse files

Fix fling in day/week view

Bug:  6334145 Day/Week view doesn't fling
Change-Id: I356a0bef55075e0efb7bce5354db66ded953f8c7
parent d9f0500e
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -4240,6 +4240,11 @@ public class DayView extends View implements View.OnCreateContextMenuListener,
                    invalidate();
                    return true;
                }

                if (mOnFlingCalled) {
                    return true;
                }

                // If we were scrolling, then reset the selected hour so that it
                // is visible.
                if (mScrolling) {
@@ -4247,9 +4252,6 @@ public class DayView extends View implements View.OnCreateContextMenuListener,
                    resetSelectedHour();
                    invalidate();
                }
                if (mOnFlingCalled) {
                    return true;
                }
                if ((mTouchMode & TOUCH_MODE_HSCROLL) != 0) {
                    mTouchMode = TOUCH_MODE_INITIAL_STATE;
                    if (Math.abs(mViewStartX) > mHorizontalSnapBackThreshold) {