Change the width of the suggestion item to match the one of the suggestion pop-up

Bug: 5267313
Change-Id: Ic7151398872459459f2537322961092d3ccffd1c
This commit is contained in:
Luca Zanolin
2011-09-28 09:27:49 +01:00
parent 9f48d6348d
commit 58707d6212
2 changed files with 2 additions and 1 deletions

View File

@@ -9742,6 +9742,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
View view = null;
for (int i = 0; i < mNumberOfSuggestions; i++) {
view = mSuggestionsAdapter.getView(i, view, mContentView);
view.getLayoutParams().width = LayoutParams.WRAP_CONTENT;
view.measure(horizontalMeasure, verticalMeasure);
width = Math.max(width, view.getMeasuredWidth());
}