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

Commit 7c73083d 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: I7870e9755f1025828fcaeb2dc9189f03558153e5
parents 9b2fe19f 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;