Skip to content

Commit 295359a

Browse files
committed
Fix the insets for the search suggestions
1 parent 5b4c9f7 commit 295359a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: app/src/main/kotlin/ca/rmen/android/poetassistant/main/MainActivity.kt

+6
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,12 @@ class MainActivity : AppCompatActivity(), OnWordClickListener, WarningNoSpaceDia
135135
top = insets.top,
136136
)
137137
}
138+
getInsets(mBinding.searchSuggestionsList) { view, insets ->
139+
view.updatePadding(
140+
left = insets.left,
141+
right = insets.right,
142+
)
143+
}
138144
val searchView = mBinding.searchView
139145
val suggestionsViewModel = ViewModelProvider(this).get(SuggestionsViewModel::class.java)
140146
mSearch.setSearchView(searchView, suggestionsViewModel)

0 commit comments

Comments
 (0)