[automerge] Update gesture region when display size changes 2p: 30be4bfdb3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17454826 Change-Id: I3fc27e42bf3cc86a65715e80e0ff89ecf41a5290
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user