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

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

Issue 2908483003: separate shipping address and option on bottom sheet (Closed)
Patch Set: more formatting Created 3 years, 7 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 d5adeeb80f85a7811414daf5950591e8d7f9a05c..7cee17be32e42b0fb1cd2c99448154cc6b90f406 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
@@ -540,9 +540,13 @@ public class PaymentRequestUI implements DialogInterface.OnDismissListener, View
mPaymentMethodSection = new OptionSection(
context, context.getString(R.string.payments_method_of_payment_label), this);
- // Display the summary of the selected address in multiple lines on bottom sheet.
+ // Display summary of selected address in multiple lines on bottom sheet.
mShippingAddressSection.setDisplaySummaryInSingleLineInNormalMode(false);
+ // Display selected shipping option name in the left summary text view and
+ // the cost in the right summary text view on bottom sheet.
+ mShippingOptionSection.setSplitSummaryInNormalMode(true);
+
// Some sections conditionally allow adding new options.
mShippingOptionSection.setCanAddItems(false);
mPaymentMethodSection.setCanAddItems(canAddCards);

Powered by Google App Engine
This is Rietveld 408576698