Merge "Fix Keyguard crash when in landscape." into lmp-preview-dev

This commit is contained in:
Jorim Jaggi
2014-06-04 16:07:02 +00:00
committed by Android (Google) Code Review

View File

@ -475,7 +475,8 @@ public class KeyguardPatternView extends LinearLayout implements KeyguardSecurit
interpolator, null);
// And the forgot pattern button
if (mForgotPatternButton.getVisibility() == View.VISIBLE) {
if (mForgotPatternButton != null
&& mForgotPatternButton.getVisibility() == View.VISIBLE) {
mAppearAnimationUtils.createAnimation(mForgotPatternButton, delay, duration,
startTranslationY, interpolator, null);
}