commit | 796200d54a0608868c946aa6391bc1320540a497 | [log] [tgz] |
---|---|---|
author | Bill Lin <lbill@google.com> | Thu Oct 28 02:45:16 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Oct 28 02:45:16 2021 +0000 |
tree | 9b908b47b596fb69c60081269db18221a3ad9562 | |
parent | 494182549666293e004a2d643c5586baa2447e93 [diff] | |
parent | 497d08aa015b05377f8811c94a4f8e0a59ef36a8 [diff] |
Merge "Allow One-handed gesture when densityDpi > 600" into sc-v2-dev am: 497d08aa01 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16113733 Change-Id: Id37abf6a8ce1e494fd1a43f6d8d8ce844f948c78
diff --git a/quickstep/src/com/android/quickstep/RecentsAnimationDeviceState.java b/quickstep/src/com/android/quickstep/RecentsAnimationDeviceState.java index e2441ed..73d1424 100644 --- a/quickstep/src/com/android/quickstep/RecentsAnimationDeviceState.java +++ b/quickstep/src/com/android/quickstep/RecentsAnimationDeviceState.java
@@ -59,7 +59,6 @@ import android.os.UserManager; import android.provider.Settings; import android.text.TextUtils; -import android.util.DisplayMetrics; import android.view.MotionEvent; import android.view.Surface; @@ -581,8 +580,7 @@ final Info displayInfo = mDisplayController.getInfo(); return (mRotationTouchHelper.touchInOneHandedModeRegion(ev) && displayInfo.rotation != Surface.ROTATION_90 - && displayInfo.rotation != Surface.ROTATION_270 - && displayInfo.densityDpi < DisplayMetrics.DENSITY_600); + && displayInfo.rotation != Surface.ROTATION_270); } return false; }