Skip to content

Commit

Permalink
Update AutoCompleteTV.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
tsynik committed Jun 1, 2024
1 parent cbdba55 commit 4644d29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/top/rootu/lampa/AutoCompleteTV.kt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class AutoCompleteTV @JvmOverloads constructor(
private fun setListViewBasedOnChildren(listView: ListView) {
val vMargin = dp2px(listView.context, 10F)
val marginLayoutParams = listView.layoutParams as MarginLayoutParams
marginLayoutParams.setMargins(0, vMargin, 0, vMargin)
marginLayoutParams.setMargins(0, vMargin, 0, 0)

listView.updateLayoutParams {
width = ViewGroup.LayoutParams.WRAP_CONTENT
Expand Down

0 comments on commit 4644d29

Please sign in to comment.