Skip to content

Commit f93ec1b

Browse files
Replace mutableListOf with buildList
1 parent 9b6dfa8 commit f93ec1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/infomaniak/mail/ui/main/menuDrawer/MenuDrawerAdapter.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class MenuDrawerAdapter @Inject constructor() : ListAdapter<Any, MenuDrawerViewH
6868
return this
6969
}
7070

71-
fun formatList(mediatorContainer: MediatorContainer) = mutableListOf<Any>().apply {
71+
fun formatList(mediatorContainer: MediatorContainer) = buildList {
7272
runCatchingRealm {
7373

7474
val (

0 commit comments

Comments
 (0)