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

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

Issue 2437143004: Clears Android keyboard when user touches any of the dropdown menu views. (Closed)
Patch Set: Clears Android keyboard when user touches any of the dropdown menu views. Created 4 years, 2 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillEditorBase.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillCreditCardEditor.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillCreditCardEditor.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillCreditCardEditor.java
index 1f4f1faf53709ba00e0338eb4d6436143971fbcd..4a0f1f83d08f0ac03e25c8cba5ffa2288a128417 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillCreditCardEditor.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillCreditCardEditor.java
@@ -72,4 +72,15 @@ abstract class AutofillCreditCardEditor extends AutofillEditorBase {
return v;
}
+
+ @Override
+ protected void initializeButtons(View v) {
+ super.initializeButtons(v);
+
+ mBillingAddress.setOnItemSelectedListener(this);
+
+ // Listen for touch events on billing address field. We clear the keyboard when user touches
+ // the billing address field because it is a drop down menu.
+ mBillingAddress.setOnTouchListener(this);
+ }
}
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillEditorBase.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698