Minor layout tweaks and bug fix in keyguard
- fix wrong string in SIM PUK unlock - use buttonBar style for "emergency" and "forgot pattern" buttons Bug 7341237 Change-Id: Id5593b54c345e3f869b6febc8554da01e7cb319e
This commit is contained in:
@@ -37,14 +37,18 @@
|
|||||||
android:textColor="?android:attr/textColorSecondary"/>
|
android:textColor="?android:attr/textColorSecondary"/>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal">
|
style="?android:attr/buttonBarStyle"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:gravity="center"
|
||||||
|
android:weightSum="2">
|
||||||
|
|
||||||
<com.android.internal.policy.impl.keyguard.EmergencyButton
|
<com.android.internal.policy.impl.keyguard.EmergencyButton
|
||||||
android:id="@+id/emergency_call_button"
|
android:id="@+id/emergency_call_button"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="0dip"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
android:drawableLeft="@*android:drawable/lockscreen_emergency_button"
|
android:drawableLeft="@*android:drawable/lockscreen_emergency_button"
|
||||||
android:text="@string/kg_emergency_call_label"
|
android:text="@string/kg_emergency_call_label"
|
||||||
style="?android:attr/buttonBarButtonStyle"
|
style="?android:attr/buttonBarButtonStyle"
|
||||||
@@ -54,11 +58,15 @@
|
|||||||
android:drawablePadding="8dip" />
|
android:drawablePadding="8dip" />
|
||||||
|
|
||||||
<Button android:id="@+id/forgot_password_button"
|
<Button android:id="@+id/forgot_password_button"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="0dip"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingLeft="20dp"
|
android:layout_weight="1"
|
||||||
android:paddingRight="20dp"
|
android:drawableLeft="@drawable/lockscreen_forgot_password_button"
|
||||||
|
style="?android:attr/buttonBarButtonStyle"
|
||||||
android:textSize="@dimen/kg_status_line_font_size"
|
android:textSize="@dimen/kg_status_line_font_size"
|
||||||
|
android:textColor="?android:attr/textColorSecondary"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:drawablePadding="8dip"
|
||||||
android:visibility="gone"/>
|
android:visibility="gone"/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ public class KeyguardSimPukView extends LinearLayout implements View.OnClickList
|
|||||||
} else if (state == CONFIRM_PIN) {
|
} else if (state == CONFIRM_PIN) {
|
||||||
if (confirmPin()) {
|
if (confirmPin()) {
|
||||||
state = DONE;
|
state = DONE;
|
||||||
msg = R.string.kg_login_checking_password;
|
msg = R.string.lockscreen_sim_unlock_progress_dialog_message;
|
||||||
updateSim();
|
updateSim();
|
||||||
} else {
|
} else {
|
||||||
msg = R.string.kg_invalid_confirm_pin_hint;
|
msg = R.string.kg_invalid_confirm_pin_hint;
|
||||||
|
|||||||
Reference in New Issue
Block a user