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: I509685116781a6f9fe2966ee12c6f993e20e7fb7
This commit is contained in:
Bill Lin
2021-10-28 02:43:07 +00:00
committed by Automerger Merge Worker
@@ -59,7 +59,6 @@ import android.os.SystemProperties;
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 @@ public class RecentsAnimationDeviceState implements
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;
}