mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +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> {
|
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"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user