Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileEditor.java

Issue 2114493002: [Payments] Update autofill/payments spacings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@payments_ongoing
Patch Set: Appcompat spinners Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileEditor.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileEditor.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileEditor.java
index 5b0302edb47de141f2366ba3478425ff59934dfc..13333c32ec80d02e2b8bbd6f3af3add0d5b9322c 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileEditor.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileEditor.java
@@ -14,6 +14,7 @@ import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Spinner;
+import android.widget.TextView;
import org.chromium.chrome.R;
import org.chromium.chrome.browser.autofill.PersonalDataManager;
@@ -58,7 +59,10 @@ public class AutofillProfileEditor extends AutofillEditorBase {
mEmailText = (EditText) v.findViewById(R.id.email_address_edit);
mEmailLabel = (CompatibilityTextInputLayout) v.findViewById(R.id.email_address_label);
mWidgetRoot = (ViewGroup) v.findViewById(R.id.autofill_profile_widget_root);
- mCountriesDropdown = (Spinner) v.findViewById(R.id.countries);
+ mCountriesDropdown = (Spinner) v.findViewById(R.id.spinner);
+
+ TextView countriesLabel = (TextView) v.findViewById(R.id.spinner_label);
+ countriesLabel.setText(v.getContext().getString(R.string.autofill_profile_editor_country));
Ian Wen 2016/07/01 19:19:03 Q: can we set the string in XML?
gone 2016/07/01 23:00:49 Not this one, no. The layout includes a generic l
mAutofillProfileBridge = new AutofillProfileBridge();

Powered by Google App Engine
This is Rietveld 408576698