Merge "Fix NPE inside REcyclerViewFastScroller" into sc-dev am: 8c0f8fba9c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14966513 Change-Id: Ia27a13cee939523874d772408ae77bef39608e27
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user