Skip to content

Commit dfba526

Browse files
committed
Use with for threadListAdapter
1 parent 7fa7e09 commit dfba526

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/main/java/com/infomaniak/mail/ui/main/search/SearchFragment.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ class SearchFragment : TwoPaneFragment() {
136136
}
137137
}
138138

139-
private fun setupAdapter() {
140-
threadListAdapter(folderRole = null)
141-
threadListAdapter.setFolderNameVisibility(true)
139+
private fun setupAdapter() = with(threadListAdapter) {
140+
this(folderRole = null)
141+
setFolderNameVisibility(true)
142142
}
143143

144144
private fun setupListeners() = with(binding) {

0 commit comments

Comments
 (0)