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

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: minor change 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 | « no previous file | ui/android/java/res/layout/dropdown_item.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..eaf23c36337cc055179e733d0306690ea7e08d80 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
@@ -78,6 +78,22 @@ public class AutofillSuggestion extends DropdownItemBase {
return super.getLabelFontSizeResId();
}
+ @Override
+ public boolean isLabelAndSublabelOnSameLine() {
+ if (mSuggestionId == ITEM_ID_HTTP_NOT_SECURE_WARNING_MESSAGE) {
+ return true;
+ }
+ return super.isLabelAndSublabelOnSameLine();
+ }
+
+ @Override
+ public boolean isIconAtStart() {
+ if (mSuggestionId == ITEM_ID_HTTP_NOT_SECURE_WARNING_MESSAGE) {
+ return true;
+ }
+ return super.isIconAtStart();
+ }
+
public int getSuggestionId() {
return mSuggestionId;
}
« no previous file with comments | « no previous file | ui/android/java/res/layout/dropdown_item.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698