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

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

Issue 1931233002: Implement PaymentRequestUpdateEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@explicit-shipping
Patch Set: Rebase 3 Created 4 years, 8 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/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 78d5ecbb3fe72f2f77754c886338c1fd3c1e4dbd..c377f7a8887c3411ae1bfb1cd701cb0182420d0c 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
@@ -196,6 +196,7 @@ public class PaymentRequestUI implements DialogInterface.OnDismissListener, View
// Set up the buttons.
mPayButton = DualControlLayout.createButtonForLayout(
activity, true, activity.getString(R.string.payments_pay_button), this);
+ mPayButton.setEnabled(false);
mEditButton = DualControlLayout.createButtonForLayout(
activity, false, activity.getString(R.string.payments_edit_button), this);
mButtonBar = (DualControlLayout) mContainer.findViewById(R.id.buttonBar);
@@ -212,6 +213,7 @@ public class PaymentRequestUI implements DialogInterface.OnDismissListener, View
activity.getString(R.string.payments_order_summary_label), this);
mShippingSummarySection = new ExtraTextSection(activity,
activity.getString(R.string.payments_shipping_summary_label), this);
+ mShippingSummarySection.setId(R.id.payments_shipping_section);
mShippingAddressSection = new OptionSection(activity,
activity.getString(R.string.payments_shipping_address_label),
activity.getString(R.string.payments_select_shipping_address_prompt), this);
@@ -370,6 +372,7 @@ public class PaymentRequestUI implements DialogInterface.OnDismissListener, View
public void updateShippingOptionsSection(SectionInformation section) {
mShippingOptionsSectionInformation = section;
mShippingOptionSection.update(section);
+ updatePayButtonEnabled();
}
private void updatePaymentMethodSection(SectionInformation section) {

Powered by Google App Engine
This is Rietveld 408576698