Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6155e9ce authored by Matt Casey's avatar Matt Casey Committed by Automerger Merge Worker
Browse files

Merge "Make magnifier show up opposite touch" into sc-dev am: 9423f4ec

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13545830

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iaa8bf2a6ad8407dd79742cd923fcaa015a759d31
parents b43d51f9 9423f4ec
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -144,7 +144,9 @@ public class MagnifierView extends View implements CropView.CropInteractionListe
                setAlpha(0f);
                setTranslationX((getParentWidth() - getWidth()) / 2);
                setVisibility(View.VISIBLE);
                animate().alpha(1f).translationX(0).scaleX(1f).scaleY(1f).start();
                boolean touchOnRight = event.getX() > getParentWidth() / 2;
                float translateXTarget = touchOnRight ? 0 : getParentWidth() - getWidth();
                animate().alpha(1f).translationX(translateXTarget).scaleX(1f).scaleY(1f).start();
                break;
            case MotionEvent.ACTION_MOVE:
                mLastCropPosition = cropPosition;