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

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

Issue 2569233006: [Payments]Set card and address editor title when editing complete cards and addresses (Closed)
Patch Set: address comment Created 4 years 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/AutofillAddress.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/AutofillPaymentInstrument.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java
index cb71c8ab5fa8a6b39707656799df99da4e401419..2069212f020eee4ee2b92e814c9fe2a08707d68d 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java
@@ -256,7 +256,7 @@ public class AutofillPaymentInstrument extends PaymentInstrument
*/
private void checkAndUpateCardCompleteness() {
int editMessageResId = 0; // Zero is the invalid resource Id.
- int editTitleResId = 0;
+ int editTitleResId = R.string.payments_edit_card;
int invalidFieldsCount = 0;
if (mBillingAddress == null) {
@@ -287,7 +287,7 @@ public class AutofillPaymentInstrument extends PaymentInstrument
}
mEditMessage = editMessageResId == 0 ? null : mContext.getString(editMessageResId);
- mEditTitle = editTitleResId == 0 ? null : mContext.getString(editTitleResId);
+ mEditTitle = mContext.getString(editTitleResId);
mIsComplete = mEditMessage == null;
}
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillAddress.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698