diff options
author | Jim Miller <jaggies@google.com> | 2012-09-04 14:16:48 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-09-04 14:16:48 -0700 |
commit | 167611811d4fd6318bc366128590701274488e84 (patch) | |
tree | 6c986f4c5b584baf4bb37278f85a676203dd2c1f | |
parent | d2a8df9541c198d555ef6a50347acb9160509863 (diff) | |
parent | d36ebe03c997cc034ba85d06e1fa0da8df047794 (diff) | |
download | frameworks_base-167611811d4fd6318bc366128590701274488e84.zip frameworks_base-167611811d4fd6318bc366128590701274488e84.tar.gz frameworks_base-167611811d4fd6318bc366128590701274488e84.tar.bz2 |
Merge "Keyguard bug fixes" into jb-mr1-dev
9 files changed, 26 insertions, 18 deletions
diff --git a/core/res/res/layout-sw600dp/keyguard_screen_status_land.xml b/core/res/res/layout-sw600dp/keyguard_screen_status_land.xml index df999f0..c6ddd1b 100644 --- a/core/res/res/layout-sw600dp/keyguard_screen_status_land.xml +++ b/core/res/res/layout-sw600dp/keyguard_screen_status_land.xml @@ -109,7 +109,7 @@ /> <TextView - android:id="@+id/propertyOf" + android:id="@+id/owner_info" android:lineSpacingExtra="8dip" android:layout_width="wrap_content" android:layout_height="wrap_content" diff --git a/core/res/res/layout-sw600dp/keyguard_screen_status_port.xml b/core/res/res/layout-sw600dp/keyguard_screen_status_port.xml index 565785b..765dc95 100644 --- a/core/res/res/layout-sw600dp/keyguard_screen_status_port.xml +++ b/core/res/res/layout-sw600dp/keyguard_screen_status_port.xml @@ -109,7 +109,7 @@ /> <TextView - android:id="@+id/propertyOf" + android:id="@+id/owner_info" android:lineSpacingExtra="8dip" android:layout_width="wrap_content" android:layout_height="wrap_content" diff --git a/core/res/res/layout/keyguard_navigation.xml b/core/res/res/layout/keyguard_navigation.xml index f9e3ef8..a033101 100644 --- a/core/res/res/layout/keyguard_navigation.xml +++ b/core/res/res/layout/keyguard_navigation.xml @@ -31,11 +31,11 @@ android:padding="10dip" android:clickable="true"> - <TextView - android:layout_width="20dip" - android:layout_height="wrap_content" - android:textSize="28dp" - android:text="@string/kg_temp_back_string" /> + <ImageView + android:src="?android:attr/homeAsUpIndicator" + android:layout_gravity="center_vertical|start" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> <!-- message area for security screen --> <TextView @@ -43,6 +43,7 @@ android:layout_width="0dip" android:layout_height="wrap_content" android:layout_weight="1" + android:layout_gravity="end" android:singleLine="true" android:ellipsize="marquee" android:layout_marginEnd="6dip" diff --git a/core/res/res/layout/keyguard_status_view.xml b/core/res/res/layout/keyguard_status_view.xml index f8d05b7..37e6779 100644 --- a/core/res/res/layout/keyguard_status_view.xml +++ b/core/res/res/layout/keyguard_status_view.xml @@ -94,7 +94,7 @@ </LinearLayout> <TextView - android:id="@*android:id/status1" + android:id="@+id/status1" android:layout_gravity="end" android:layout_marginEnd="@*android:dimen/keyguard_lockscreen_status_line_font_right_margin" android:singleLine="true" @@ -105,7 +105,18 @@ /> <TextView - android:id="@*android:id/carrier" + android:id="@+id/owner_info" + android:layout_gravity="end" + android:layout_marginEnd="@*android:dimen/keyguard_lockscreen_status_line_font_right_margin" + android:singleLine="true" + android:ellipsize="marquee" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="@*android:dimen/keyguard_lockscreen_status_line_font_size" + android:drawablePadding="4dip" + /> + + <TextView + android:id="@+id/carrier" android:layout_gravity="end" android:layout_marginEnd="@*android:dimen/keyguard_lockscreen_status_line_font_right_margin" android:singleLine="true" diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml index 8e0eb15..045787b 100644 --- a/core/res/res/values/public.xml +++ b/core/res/res/values/public.xml @@ -1293,7 +1293,7 @@ <java-symbol type="id" name="passwordEntry" /> <java-symbol type="id" name="pinDel" /> <java-symbol type="id" name="pinDisplay" /> - <java-symbol type="id" name="propertyOf" /> + <java-symbol type="id" name="owner_info" /> <java-symbol type="id" name="pukDel" /> <java-symbol type="id" name="pukDisplay" /> <java-symbol type="id" name="right_icon" /> diff --git a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardPasswordView.java b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardPasswordView.java index 6938561..b2ce73e 100644 --- a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardPasswordView.java +++ b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardPasswordView.java @@ -256,12 +256,10 @@ public class KeyguardPasswordView extends LinearLayout private void verifyPasswordAndUnlock() { String entry = mPasswordEntry.getText().toString(); - boolean wrongPassword = true; if (mLockPatternUtils.checkPassword(entry)) { mCallback.reportSuccessfulUnlockAttempt(); KeyStore.getInstance().password(entry); mCallback.dismiss(true); - wrongPassword = false; } else if (entry.length() > MINIMUM_PASSWORD_LENGTH_BEFORE_REPORT ) { // to avoid accidental lockout, only count attempts that are long enough to be a // real password. This may require some tweaking. @@ -271,9 +269,9 @@ public class KeyguardPasswordView extends LinearLayout long deadline = mLockPatternUtils.setLockoutAttemptDeadline(); handleAttemptLockout(deadline); } + mNavigationManager.setMessage( + mIsAlpha ? R.string.kg_wrong_password : R.string.kg_wrong_pin); } - mNavigationManager.setMessage(wrongPassword ? - (mIsAlpha ? R.string.kg_wrong_password : R.string.kg_wrong_pin) : 0); mPasswordEntry.setText(""); } diff --git a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardSimPinView.java b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardSimPinView.java index 294ea5c..4861b78 100644 --- a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardSimPinView.java +++ b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardSimPinView.java @@ -91,8 +91,6 @@ public class KeyguardSimPinView extends LinearLayout } }); } - - setFocusableInTouchMode(true); reset(); } diff --git a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardStatusViewManager.java b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardStatusViewManager.java index 06ed88a..20fad0b 100644 --- a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardStatusViewManager.java +++ b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardStatusViewManager.java @@ -119,7 +119,7 @@ class KeyguardStatusViewManager { mDateView = (TextView) findViewById(R.id.date); mStatus1View = (TextView) findViewById(R.id.status1); mAlarmStatusView = (TextView) findViewById(R.id.alarm_status); - mOwnerInfoView = (TextView) findViewById(R.id.propertyOf); + mOwnerInfoView = (TextView) findViewById(R.id.owner_info); mDigitalClock = (DigitalClock) findViewById(R.id.time); // Registering this callback immediately updates the battery state, among other things. diff --git a/policy/src/com/android/internal/policy/impl/keyguard_obsolete/KeyguardStatusViewManager.java b/policy/src/com/android/internal/policy/impl/keyguard_obsolete/KeyguardStatusViewManager.java index 409f87b..b6ffde0 100644 --- a/policy/src/com/android/internal/policy/impl/keyguard_obsolete/KeyguardStatusViewManager.java +++ b/policy/src/com/android/internal/policy/impl/keyguard_obsolete/KeyguardStatusViewManager.java @@ -179,7 +179,7 @@ class KeyguardStatusViewManager implements OnClickListener { mDateView = (TextView) findViewById(R.id.date); mStatus1View = (TextView) findViewById(R.id.status1); mAlarmStatusView = (TextView) findViewById(R.id.alarm_status); - mOwnerInfoView = (TextView) findViewById(R.id.propertyOf); + mOwnerInfoView = (TextView) findViewById(R.id.owner_info); mTransportView = (TransportControlView) findViewById(R.id.transport); mEmergencyCallButton = (Button) findViewById(R.id.emergencyCallButton); mEmergencyCallButtonEnabledInScreen = emergencyButtonEnabledInScreen; |