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

Unified Diff: components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java

Issue 2510283002: Http Bad: Put icon on the left of warning message and make value and label in one line on Android (Closed)
Patch Set: format Created 4 years, 1 month 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: components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java
diff --git a/components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java b/components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java
index 885fd7cf1868f70069beba29057c15f76040ef83..a9c0197ad13d2c3d3b6e892e050305a6be7ea80d 100644
--- a/components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java
+++ b/components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java
@@ -4,6 +4,8 @@
package org.chromium.components.autofill;
+import android.widget.LinearLayout;
+
import org.chromium.ui.DropdownItemBase;
/**
@@ -78,6 +80,22 @@ public class AutofillSuggestion extends DropdownItemBase {
return super.getLabelFontSizeResId();
}
+ @Override
+ public int getLabelSublabelOrientation() {
+ if (mSuggestionId == ITEM_ID_HTTP_NOT_SECURE_WARNING_MESSAGE) {
+ return LinearLayout.HORIZONTAL;
+ }
+ return super.getLabelSublabelOrientation();
+ }
+
+ @Override
+ public boolean isIconOnLeft() {
+ if (mSuggestionId == ITEM_ID_HTTP_NOT_SECURE_WARNING_MESSAGE) {
+ return true;
+ }
+ return super.isIconOnLeft();
+ }
+
public int getSuggestionId() {
return mSuggestionId;
}

Powered by Google App Engine
This is Rietveld 408576698