From d6f6764b0c4ee7b6cb6620ec2cb0c7818aec226a Mon Sep 17 00:00:00 2001 From: ganfra Date: Tue, 26 Feb 2019 19:28:39 +0100 Subject: [PATCH] Timeline : avoid epoxy to build on main thread first --- .../home/room/detail/timeline/TimelineEventController.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/TimelineEventController.kt b/app/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/TimelineEventController.kt index e610931c48..ec865e4b8b 100644 --- a/app/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/TimelineEventController.kt +++ b/app/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/TimelineEventController.kt @@ -40,7 +40,11 @@ class TimelineEventController(private val roomId: String, private var isLoadingForward: Boolean = false private var isLoadingBackward: Boolean = false - private var hasReachedEnd: Boolean = false + private var hasReachedEnd: Boolean = true + + init { + requestModelBuild() + } var callback: Callback? = null