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

Change-Id: I500fb765cf206b97cc0b585c195cc647cc8e63f1
This commit is contained in:
Winson Chung
2012-11-07 20:57:06 -08:00
parent ae0161e7af
commit 2635750fa7

View File

@@ -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();