Merge "Fix One-handed mode tutorial broken on large screen device" into tm-dev am: 4d3995b399 am: 68c42f2742
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17419735 Change-Id: I580c911c120e47512a612f498ebfeebab578739b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user