* commit '911176d7e6c8ba28ed7f7be63edcb17456f615fe': Fix crash in widget pager - DO NOT MERGE
This commit is contained in:
@@ -846,7 +846,7 @@ public class KeyguardWidgetPager extends PagedView implements PagedView.PageSwit
|
|||||||
currentPage.setPivotX(0);
|
currentPage.setPivotX(0);
|
||||||
currentPage.setPivotX(currentPage.getMeasuredWidth() / 2);
|
currentPage.setPivotX(currentPage.getMeasuredWidth() / 2);
|
||||||
}
|
}
|
||||||
if (!(currentPage.getScaleX() < 1f || currentPage.getScaleY() < 1f)) {
|
if (currentPage != null && (!(currentPage.getScaleX() < 1f || currentPage.getScaleY() < 1f))) {
|
||||||
mZoomInOutAnim = new AnimatorSet();
|
mZoomInOutAnim = new AnimatorSet();
|
||||||
mZoomInOutAnim.playTogether(
|
mZoomInOutAnim.playTogether(
|
||||||
ObjectAnimator.ofFloat(currentPage, "scaleX", BOUNCER_SCALE_FACTOR),
|
ObjectAnimator.ofFloat(currentPage, "scaleX", BOUNCER_SCALE_FACTOR),
|
||||||
|
|||||||
Reference in New Issue
Block a user