Merge "Allow One-handed gesture when densityDpi > 600" into sc-qpr1-dev
This commit is contained in:
commit
6648ab32bc
|
@ -58,8 +58,6 @@ import android.os.SystemProperties;
|
|||
import android.os.UserManager;
|
||||
import android.provider.Settings;
|
||||
import android.text.TextUtils;
|
||||
import android.util.DisplayMetrics;
|
||||
import android.util.Log;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.Surface;
|
||||
|
||||
|
@ -67,7 +65,6 @@ import androidx.annotation.BinderThread;
|
|||
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.launcher3.testing.TestProtocol;
|
||||
import com.android.launcher3.util.DisplayController;
|
||||
import com.android.launcher3.util.DisplayController.DisplayInfoChangeListener;
|
||||
import com.android.launcher3.util.DisplayController.Info;
|
||||
|
@ -591,8 +588,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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue