Skip to content

Commit 450634c

Browse files
Replace mutableListOf with buildList
1 parent be365b3 commit 450634c

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
@@ -61,7 +61,7 @@ class MenuDrawerAdapter @Inject constructor() : ListAdapter<Any, MenuDrawerViewH
6161
return this
6262
}
6363

64-
fun formatList(mediatorContainer: MediatorContainer) = mutableListOf<Any>().apply {
64+
fun formatList(mediatorContainer: MediatorContainer) = buildList {
6565
runCatchingRealm {
6666

6767
val (

0 commit comments

Comments
 (0)