summaryrefslogtreecommitdiffstats
path: root/packages/Keyguard
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2014-06-04 17:59:37 +0200
committerJorim Jaggi <jjaggi@google.com>2014-06-04 17:59:37 +0200
commit6a247199bae1ef4d8e4fa02977e6641bcb9bcde8 (patch)
treebd1b6fd11721a4061ec59988dd31293d4500a8e9 /packages/Keyguard
parentac80c44a426afdeabd9afd0feec076754a8332d7 (diff)
downloadframeworks_base-6a247199bae1ef4d8e4fa02977e6641bcb9bcde8.zip
frameworks_base-6a247199bae1ef4d8e4fa02977e6641bcb9bcde8.tar.gz
frameworks_base-6a247199bae1ef4d8e4fa02977e6641bcb9bcde8.tar.bz2
Fix Keyguard crash when in landscape.
Bug: 15391673 Change-Id: Icb50af358a8478672265a420dd7d500a87fb3fa0
Diffstat (limited to 'packages/Keyguard')
-rw-r--r--packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java b/packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java
index e6de72f..a0b5536 100644
--- a/packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java
+++ b/packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java
@@ -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);
}