From 2635750fa7f835d102c3fd52b18e00d364d9ae42 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Wed, 7 Nov 2012 20:57:06 -0800 Subject: [PATCH] Adding workaround to fix issue where the bouncer animation had the wrong pivot. Change-Id: I500fb765cf206b97cc0b585c195cc647cc8e63f1 --- .../internal/policy/impl/keyguard/KeyguardWidgetPager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardWidgetPager.java b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardWidgetPager.java index 685e8eea0cfb6..7df1512e8c45e 100644 --- a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardWidgetPager.java +++ b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardWidgetPager.java @@ -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();