Skip to content

Commit 2635750

Browse files
author
Winson Chung
committed
Adding workaround to fix issue where the bouncer animation had the wrong pivot.
Change-Id: I500fb765cf206b97cc0b585c195cc647cc8e63f1
1 parent ae0161e commit 2635750

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

policy/src/com/android/internal/policy/impl/keyguard/KeyguardWidgetPager.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,9 @@ void zoomOutToBouncer() {
770770
}
771771
View currentPage = getPageAt(getCurrentPage());
772772
currentPage.setPivotY(0);
773+
// Note: we are working around the issue that setting the x-pivot to the same value as it
774+
// was does not actually work.
775+
currentPage.setPivotX(0);
773776
currentPage.setPivotX(currentPage.getMeasuredWidth() / 2);
774777
if (!(currentPage.getScaleX() < 1f || currentPage.getScaleY() < 1f)) {
775778
mZoomInOutAnim = new AnimatorSet();

0 commit comments

Comments
 (0)