Update gesture region when display size changes

Test: change resolution on device, ensure bottom gestures work
Fixes: 225169659
Change-Id: Iafc4a797741092c82bc89b46dd2babe6d1c13512
This commit is contained in:
Tony Wickham
2022-03-28 15:50:22 -07:00
parent 8d06bb8991
commit 30be4bfdb3
@@ -22,6 +22,7 @@ import static com.android.launcher3.util.DisplayController.CHANGE_ACTIVE_SCREEN;
import static com.android.launcher3.util.DisplayController.CHANGE_ALL;
import static com.android.launcher3.util.DisplayController.CHANGE_NAVIGATION_MODE;
import static com.android.launcher3.util.DisplayController.CHANGE_ROTATION;
import static com.android.launcher3.util.DisplayController.CHANGE_SUPPORTED_BOUNDS;
import static com.android.launcher3.util.DisplayController.NavigationMode.THREE_BUTTONS;
import static com.android.launcher3.util.Executors.UI_HELPER_EXECUTOR;
@@ -250,7 +251,8 @@ public class RotationTouchHelper implements DisplayInfoChangeListener {
}
private void onDisplayInfoChangedInternal(Info info, int flags, boolean forceRegister) {
if ((flags & (CHANGE_ROTATION | CHANGE_ACTIVE_SCREEN | CHANGE_NAVIGATION_MODE)) != 0) {
if ((flags & (CHANGE_ROTATION | CHANGE_ACTIVE_SCREEN | CHANGE_NAVIGATION_MODE
| CHANGE_SUPPORTED_BOUNDS)) != 0) {
mDisplayRotation = info.rotation;
if (mMode.hasGestures) {