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

Commit 2635750f authored by Winson Chung's avatar Winson Chung
Browse files

Adding workaround to fix issue where the bouncer animation had the wrong pivot.

Change-Id: I500fb765cf206b97cc0b585c195cc647cc8e63f1
parent ae0161e7
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -770,6 +770,9 @@ public class KeyguardWidgetPager extends PagedView implements PagedView.PageSwit
        }
        View currentPage = getPageAt(getCurrentPage());
        currentPage.setPivotY(0);
        // Note: we are working around the issue that setting the x-pivot to the same value as it
        //       was does not actually work.
        currentPage.setPivotX(0);
        currentPage.setPivotX(currentPage.getMeasuredWidth() / 2);
        if (!(currentPage.getScaleX() < 1f || currentPage.getScaleY() < 1f)) {
            mZoomInOutAnim = new AnimatorSet();