Merge "Align the system gesture swipe threshold when reporting insets"

This commit is contained in:
Shawn Lin
2021-11-09 06:33:52 +00:00
committed by Android (Google) Code Review

View File

@@ -1077,7 +1077,8 @@ public class DisplayPolicy {
if (cutout != null) {
final Rect top = cutout.getBoundingRectTop();
if (!top.isEmpty()) {
rect.bottom = rect.bottom + mDisplayCutoutTouchableRegionSize;
rect.bottom = Math.max(rect.bottom,
top.bottom + mDisplayCutoutTouchableRegionSize);
}
}
};