summaryrefslogtreecommitdiffstats
path: root/packages/Keyguard
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2014-06-04 20:52:38 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-06-04 20:52:38 +0000
commit8abb0a8398b3b7dcced7c5ef5ccf01a55f881c39 (patch)
tree13876f5dd0bdb54fb2fda4066b821593bb2916bb /packages/Keyguard
parentbdd22d6822d6cc53c835f849ff14092ec8dc4dda (diff)
parentbc07ebb9b86f41472d056a65a196e00ed55690cc (diff)
downloadframeworks_base-8abb0a8398b3b7dcced7c5ef5ccf01a55f881c39.zip
frameworks_base-8abb0a8398b3b7dcced7c5ef5ccf01a55f881c39.tar.gz
frameworks_base-8abb0a8398b3b7dcced7c5ef5ccf01a55f881c39.tar.bz2
am 6dc68cab: Merge "Fix Keyguard crash when in landscape." into lmp-preview-dev
* commit '6dc68cab1858bc899fb3209c61dc86a813e7b8ff': Fix Keyguard crash when in landscape.
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);
}