Skip to content

Commit 062e01c

Browse files
Winson ChungAndroid Git Automerger
authored andcommitted
am 2635750: Adding workaround to fix issue where the bouncer animation had the wrong pivot.
* commit '2635750fa7f835d102c3fd52b18e00d364d9ae42': Adding workaround to fix issue where the bouncer animation had the wrong pivot.
2 parents e9c881c + 2635750 commit 062e01c

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)