mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-01 09:42:23 +00:00
Fix bug. n+1 items were created.
This commit is contained in:
+2
-2
@@ -33,8 +33,8 @@ object RoomListRoomSummaryPlaceholders {
|
||||
|
||||
fun createFakeList(size: Int): List<RoomListRoomSummary> {
|
||||
return mutableListOf<RoomListRoomSummary>().apply {
|
||||
for (i in 0..size) {
|
||||
add(create("\$fakeRoom$i"))
|
||||
repeat(size) {
|
||||
add(create("\$fakeRoom$it"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user