Merge "Allow One-handed gesture when densityDpi > 600" into sc-v2-dev

This commit is contained in:
Bill Lin
2021-10-28 02:20:24 +00:00
committed by Android (Google) Code Review
@@ -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;
}