From 6a9afa94e282efa9f6f44b02be54e384765d853c Mon Sep 17 00:00:00 2001 From: John Reck Date: Fri, 29 Jul 2011 10:18:41 -0700 Subject: Allow suggestions to span 2 lines Bug: 4603029 Change-Id: If0d914a559d32f33a7b75cd1103a6a972082f396 --- src/com/android/browser/SuggestionsAdapter.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/com/android/browser/SuggestionsAdapter.java') diff --git a/src/com/android/browser/SuggestionsAdapter.java b/src/com/android/browser/SuggestionsAdapter.java index 30b4738..e1511b9 100644 --- a/src/com/android/browser/SuggestionsAdapter.java +++ b/src/com/android/browser/SuggestionsAdapter.java @@ -182,9 +182,11 @@ public class SuggestionsAdapter extends BaseAdapter implements Filterable, tv1.setText(Html.fromHtml(item.title)); if (TextUtils.isEmpty(item.url)) { tv2.setVisibility(View.GONE); + tv1.setMaxLines(2); } else { tv2.setVisibility(View.VISIBLE); tv2.setText(item.url); + tv1.setMaxLines(1); } int id = -1; switch (item.type) { -- cgit v1.1