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

Commit 53b19f1b authored by Saumya Prakash's avatar Saumya Prakash Committed by Automerger Merge Worker
Browse files

Merge "Ensure Gesture Nav Edu animation scales to fit different screen sizes"...

Merge "Ensure Gesture Nav Edu animation scales to fit different screen sizes" into udc-qpr-dev am: 15b0c9ea am: a2c96572

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24623620



Change-Id: Ice6431407e0a6cf6f69eb9440f79c38badbcaa81
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 175ad05a a2c96572
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -226,13 +226,11 @@ abstract class TutorialController implements BackGestureAttemptCallback,
            return;
        }
        Matrix scaleMatrix = new Matrix();
        float pivotX = mScreenWidth / 2f;
        float pivotY = mScreenHeight;
        float scaleFactor = mScreenWidth / animationBoundsRect.width();
        float heightTranslate = (mScreenHeight - (scaleFactor * animationBoundsRect.height()));

        scaleMatrix.postScale(scaleFactor, scaleFactor, pivotX, pivotY);
        scaleMatrix.postTranslate(0,
                mTutorialFragment.getDeviceProfile().heightPx - animationBoundsRect.height());
        scaleMatrix.postScale(scaleFactor, scaleFactor);
        scaleMatrix.postTranslate(0, heightTranslate);
        mAnimatedGestureDemonstration.setImageMatrix(scaleMatrix);
    }