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

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

Issue 2802703003: [Payments] Style "ADD ADDRESS" even if it is the only item in the billing address dropdown (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | 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/ui/BillingAddressAdapter.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/BillingAddressAdapter.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/BillingAddressAdapter.java
index 927c3f6686a89f574711dad2cf57fdeaae84989b..51c340dd06c0120583bd01a53d36cf73b0afe85c 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/BillingAddressAdapter.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/BillingAddressAdapter.java
@@ -95,7 +95,10 @@ public class BillingAddressAdapter<T> extends DropdownFieldAdapter<T> {
R.dimen.payments_section_small_spacing),
ApiCompatibilityUtils.getPaddingEnd(convertView),
convertView.getPaddingBottom());
- } else if (position == getCount() - 1) {
+ }
+
+ // The last item is "ADD ADDRESS".
+ if (position == getCount() - 1) {
// Add a "+" icon and a blue tint to the last element.
Resources resources = getContext().getResources();
if (textView == null) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698