Merge "Fix One-handed mode tutorial broken on large screen device" into tm-dev

This commit is contained in:
Jason Chang
2022-04-07 13:58:52 +00:00
committed by Android (Google) Code Review
@@ -63,7 +63,6 @@ import android.os.UserManager;
import android.provider.Settings;
import android.text.TextUtils;
import android.view.MotionEvent;
import android.view.Surface;
import androidx.annotation.BinderThread;
@@ -557,8 +556,7 @@ public class RecentsAnimationDeviceState implements DisplayInfoChangeListener {
if (mIsOneHandedModeEnabled) {
final Info displayInfo = mDisplayController.getInfo();
return (mRotationTouchHelper.touchInOneHandedModeRegion(ev)
&& displayInfo.rotation != Surface.ROTATION_90
&& displayInfo.rotation != Surface.ROTATION_270);
&& (displayInfo.currentSize.x < displayInfo.currentSize.y));
}
return false;
}