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

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

Issue 2576763002: Set card and address editor title when editing complete cards and addresses (Closed)
Patch Set: 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 00c6f5950231f49f46374efc6ceedea807fd6488..cb135e87463a7e455b270b6d592a6cc3a6a0a0f3 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
@@ -250,7 +250,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) {
@@ -281,7 +281,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