summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorJim Miller <jaggies@google.com>2010-04-15 17:55:18 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-04-15 17:55:18 -0700
commit318249e46783c69d495c3a023b0de97757687050 (patch)
tree0417f183d8512fff6ae1d140e9ba15f180b19b6e /policy
parent43725d4d4465e914a8c5209f254e780acc7fabd4 (diff)
parent5169fc57e38cda45d6fda4b47b727167dd937cc8 (diff)
downloadframeworks_base-318249e46783c69d495c3a023b0de97757687050.zip
frameworks_base-318249e46783c69d495c3a023b0de97757687050.tar.gz
frameworks_base-318249e46783c69d495c3a023b0de97757687050.tar.bz2
Merge "Manual merge of Ida6a4cdd3abcbcab7e2fe8450a25c0dc36765f04" into kraken
Diffstat (limited to 'policy')
-rw-r--r--policy/com/android/internal/policy/impl/PasswordUnlockScreen.java15
1 files changed, 9 insertions, 6 deletions
diff --git a/policy/com/android/internal/policy/impl/PasswordUnlockScreen.java b/policy/com/android/internal/policy/impl/PasswordUnlockScreen.java
index a0e4f93..39f2917 100644
--- a/policy/com/android/internal/policy/impl/PasswordUnlockScreen.java
+++ b/policy/com/android/internal/policy/impl/PasswordUnlockScreen.java
@@ -60,7 +60,7 @@ public class PasswordUnlockScreen extends LinearLayout implements KeyguardScreen
private PasswordEntryKeyboardHelper mKeyboardHelper;
private int mCreationOrientation;
- private int mKeyboardHidden;
+ private int mCreationHardKeyboardHidden;
private CountDownTimer mCountdownTimer;
private TextView mTitle;
@@ -73,7 +73,7 @@ public class PasswordUnlockScreen extends LinearLayout implements KeyguardScreen
KeyguardScreenCallback callback) {
super(context);
- mKeyboardHidden = configuration.hardKeyboardHidden;
+ mCreationHardKeyboardHidden = configuration.hardKeyboardHidden;
mCreationOrientation = configuration.orientation;
mUpdateMonitor = updateMonitor;
mCallback = callback;
@@ -102,7 +102,7 @@ public class PasswordUnlockScreen extends LinearLayout implements KeyguardScreen
mKeyboardHelper.setKeyboardMode(isAlpha ? PasswordEntryKeyboardHelper.KEYBOARD_MODE_ALPHA
: PasswordEntryKeyboardHelper.KEYBOARD_MODE_NUMERIC);
- mKeyboardView.setVisibility(mKeyboardHidden == Configuration.HARDKEYBOARDHIDDEN_NO
+ mKeyboardView.setVisibility(mCreationHardKeyboardHidden == Configuration.HARDKEYBOARDHIDDEN_NO
? View.INVISIBLE : View.VISIBLE);
mPasswordEntry.requestFocus();
@@ -213,8 +213,10 @@ public class PasswordUnlockScreen extends LinearLayout implements KeyguardScreen
@Override
protected void onAttachedToWindow() {
super.onAttachedToWindow();
- if (getResources().getConfiguration().orientation != mCreationOrientation) {
- mCallback.recreateMe(getResources().getConfiguration());
+ Configuration config = getResources().getConfiguration();
+ if (config.orientation != mCreationOrientation
+ || config.hardKeyboardHidden != mCreationHardKeyboardHidden) {
+ mCallback.recreateMe(config);
}
}
@@ -222,7 +224,8 @@ public class PasswordUnlockScreen extends LinearLayout implements KeyguardScreen
@Override
protected void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
- if (newConfig.orientation != mCreationOrientation) {
+ if (newConfig.orientation != mCreationOrientation
+ || newConfig.hardKeyboardHidden != mCreationHardKeyboardHidden) {
mCallback.recreateMe(newConfig);
}
}