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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user