Update UI for "Setup Auto-fill" dialog.
Update the UI for the dialog shown that prompts the user to set
up the form auto-fill feature. Adds a title and uses the same
padding as the framework alert.
Bug: 4671245
Change-Id: I7b4509d971cd36d6116b4f039f06a13140635c67
diff --git a/res/layout/setup_autofill_dialog.xml b/res/layout/setup_autofill_dialog.xml
index 084ae7a..499c2a6 100644
--- a/res/layout/setup_autofill_dialog.xml
+++ b/res/layout/setup_autofill_dialog.xml
@@ -18,14 +18,17 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
- android:paddingTop="20dip" >
+ android:paddingTop="9dip"
+ android:paddingBottom="3dip"
+ android:paddingLeft="3dip"
+ android:paddingRight="1dip">
<TextView
android:text="@string/autofill_setup_dialog_message"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:paddingBottom="5dip" />
+ android:padding="5dip" />
<CheckBox android:id="@+id/setup_autofill_dialog_disable_autofill"
android:text="@string/disable_autofill"
diff --git a/res/values/strings.xml b/res/values/strings.xml
index d0e81ac..81edfb2 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -423,6 +423,8 @@
<!-- Button text to delete all the AutoFill profile data [CHAR-LIMIT=20] -->
<string name="autofill_profile_editor_delete_profile">Delete profile</string>
+ <!-- Title on a dialog shown to the user when they are prompted to set up the autofill feature [CHAR-LIMIT=32] -->
+ <string name="autofill_setup_dialog_title">Setup Auto-fill?</string>
<!-- Text on a dialog shown to the user when they are prompted to set up the autofill feature [CHAR-LIMIT=NONE] -->
<string name="autofill_setup_dialog_message">Browser can automatically complete web forms like this one. Would you like to set up your profile?</string>
<!-- Toast message displayed when the user decides to not set up autofill at this time. We want to remind them that they can configure
diff --git a/src/com/android/browser/Tab.java b/src/com/android/browser/Tab.java
index 911726c..d8a3af9 100644
--- a/src/com/android/browser/Tab.java
+++ b/src/com/android/browser/Tab.java
@@ -1214,6 +1214,7 @@
final View layout = inflater.inflate(R.layout.setup_autofill_dialog, null);
builder.setView(layout)
+ .setTitle(R.string.autofill_setup_dialog_title)
.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int id) {