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

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

Issue 2081533002: Edit contacts UI for PaymentRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@contactDetails
Patch Set: Created 4 years, 6 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/PaymentOption.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentOption.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentOption.java
index 96689d96a9ba0f06b56ea1b8fa67ae866092776a..c8a8c65cde45cd83df7ec601a50590c203ff46e1 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentOption.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentOption.java
@@ -15,9 +15,9 @@ public class PaymentOption {
public static final int NO_ICON = 0;
private final String mId;
- private final String mLabel;
- private final String mSublabel;
private final int mIcon;
+ private String mLabel;
+ private String mSublabel;
private boolean mIsValid = true;
/**
@@ -51,6 +51,16 @@ public class PaymentOption {
}
/**
+ * Updates the primary label of this option. Can be called after this option has been edited by
+ * the user.
+ *
+ * @param label The new primary label to use.
+ */
+ protected void setLabel(String label) {
+ mLabel = label;
+ }
+
+ /**
* The optional sublabel of this option. For example, “Expiration date: 12/2025”.
*/
public String getSublabel() {
@@ -58,6 +68,16 @@ public class PaymentOption {
}
/**
+ * Updates the optional sublabel of this option. Can be called after this option has been edited
+ * by the user.
+ *
+ * @param sublabel The new sublabel to use.
+ */
+ protected void setSublabel(String sublabel) {
+ mSublabel = sublabel;
+ }
+
+ /**
* The identifier for the drawable icon for this payment option. For example,
* R.drawable.visa_card_issuer_icon or NO_ICON.
*/

Powered by Google App Engine
This is Rietveld 408576698