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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java

Issue 2255473002: [Merge M-53] Show progress spinner when waiting for shipping options update. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 4 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 | « chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java ('k') | no next file » | 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/payments/ui/PaymentRequestUI.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java
index 165cfe49651a34cdf298d3c30ac04f6caf493b64..38b86b91fe0b433dae4735b8533855c3bd77495e 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java
@@ -606,9 +606,11 @@ public class PaymentRequestUI implements DialogInterface.OnDismissListener, View
mShippingAddressSectionInformation.setSelectedItem(option);
result = mClient.onSectionOptionSelected(
TYPE_SHIPPING_ADDRESSES, option, mUpdateSectionsCallback);
- } else if (section == mShippingOptionSection) {
+ } else if (section == mShippingOptionSection
+ && mShippingOptionsSectionInformation.getSelectedItem() != option) {
mShippingOptionsSectionInformation.setSelectedItem(option);
- result = mClient.onSectionOptionSelected(TYPE_SHIPPING_OPTIONS, option, null);
+ result = mClient.onSectionOptionSelected(
+ TYPE_SHIPPING_OPTIONS, option, mUpdateSectionsCallback);
} else if (section == mContactDetailsSection) {
mContactDetailsSectionInformation.setSelectedItem(option);
result = mClient.onSectionOptionSelected(TYPE_CONTACT_DETAILS, option, null);
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698