Skip to content

Commit f88a56e

Browse files
author
Ben Murdoch
committed
Pass correct units for text size in autocomplete drop down.
We need to set the size of the text used in the autocomplete drop down in pixels, as we do when setting the size of the EditText itself. Bug: 5420125 Change-Id: Ife6d8c108c57106ffaa8706fa9e4e537a73a1733
1 parent ca35bc5 commit f88a56e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/java/android/webkit/WebTextView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ public View getView(int position, View convertView, ViewGroup parent) {
832832
TextView tv =
833833
(TextView) super.getView(position, convertView, parent);
834834
if (tv != null && mTextView != null) {
835-
tv.setTextSize(mTextView.getTextSize());
835+
tv.setTextSize(TypedValue.COMPLEX_UNIT_PX, mTextView.getTextSize());
836836
}
837837
return tv;
838838
}

0 commit comments

Comments
 (0)