am 607d5998: Fix crash in widget pager - DO NOT MERGE

* commit '607d59982a046d23770a7289be6272ad5983d6ae':
  Fix crash in widget pager - DO NOT MERGE
This commit is contained in:
Jim Miller
2014-05-21 20:35:51 +00:00
committed by Android Git Automerger

View File

@@ -846,7 +846,7 @@ public class KeyguardWidgetPager extends PagedView implements PagedView.PageSwit
currentPage.setPivotX(0);
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.playTogether(
ObjectAnimator.ofFloat(currentPage, "scaleX", BOUNCER_SCALE_FACTOR),