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) { |