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

Commit 8c0f8fba authored by Hyunyoung Song's avatar Hyunyoung Song Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE inside REcyclerViewFastScroller" into sc-dev

parents b8cec440 a9aeebc5
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -344,7 +344,7 @@ public class RecyclerViewFastScroller extends View {
            // swiping very close to the thumb area (not just within it's bound)
            // swiping very close to the thumb area (not just within it's bound)
            // will also prevent back gesture
            // will also prevent back gesture
            SYSTEM_GESTURE_EXCLUSION_RECT.get(0).offset(mThumbDrawOffset.x, mThumbDrawOffset.y);
            SYSTEM_GESTURE_EXCLUSION_RECT.get(0).offset(mThumbDrawOffset.x, mThumbDrawOffset.y);
            if (Utilities.ATLEAST_Q) {
            if (Utilities.ATLEAST_Q && mSystemGestureInsets != null) {
                SYSTEM_GESTURE_EXCLUSION_RECT.get(0).left =
                SYSTEM_GESTURE_EXCLUSION_RECT.get(0).left =
                        SYSTEM_GESTURE_EXCLUSION_RECT.get(0).right - mSystemGestureInsets.right;
                        SYSTEM_GESTURE_EXCLUSION_RECT.get(0).right - mSystemGestureInsets.right;
            }
            }