Fix bug. n+1 items were created.
This commit is contained in:
parent
b0b38598c6
commit
e41e6b9205
1 changed files with 2 additions and 2 deletions
|
|
@ -33,8 +33,8 @@ object RoomListRoomSummaryPlaceholders {
|
||||||
|
|
||||||
fun createFakeList(size: Int): List<RoomListRoomSummary> {
|
fun createFakeList(size: Int): List<RoomListRoomSummary> {
|
||||||
return mutableListOf<RoomListRoomSummary>().apply {
|
return mutableListOf<RoomListRoomSummary>().apply {
|
||||||
for (i in 0..size) {
|
repeat(size) {
|
||||||
add(create("\$fakeRoom$i"))
|
add(create("\$fakeRoom$it"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue