| Index: chrome/android/java/src/org/chromium/chrome/browser/payments/ui/EditorFieldModel.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/EditorFieldModel.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/EditorFieldModel.java
|
| index cad157ccee467e88198d609e90f5ef5c84100e58..1bce4bff65570e328a042d11f8ea21588344ddba 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/EditorFieldModel.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/EditorFieldModel.java
|
| @@ -168,17 +168,17 @@ public class EditorFieldModel {
|
|
|
| /**
|
| * Updates the value of this field. Does not trigger validation or update the last error
|
| - * message. Should be called only for text fields.
|
| + * message. Can be called on a dropdown to initialize it, but will not fire the dropdown
|
| + * callback.
|
| *
|
| - * @param value The new value that the user has typed in.
|
| + * @param value The new value that the user has typed in or the initial key for the dropdown.
|
| */
|
| - public void setValue(@Nullable CharSequence value) {
|
| - assert mInputTypeHint != INPUT_TYPE_HINT_DROPDOWN;
|
| - mValue = value;
|
| + public void setValue(@Nullable CharSequence userTypedValueOrInitialDropdownKey) {
|
| + mValue = userTypedValueOrInitialDropdownKey;
|
| }
|
|
|
| /**
|
| - * Updates the dropdown selection.
|
| + * Updates the dropdown selection and fires the dropdown callback.
|
| *
|
| * @param key The new dropdown key.
|
| * @param callback The callback to invoke when the change has been processed.
|
|
|