Adding workaround to fix issue where the bouncer animation had the wrong pivot.
Change-Id: I500fb765cf206b97cc0b585c195cc647cc8e63f1
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user