From 15304440efdb812de937aed5d2f3e83704d5941d Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Sat, 12 Mar 2022 09:38:59 +0100 Subject: [PATCH] fix "nothing here" flickering when starting Tusky (#2377) --- .../keylesspalace/tusky/components/timeline/TimelineFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/components/timeline/TimelineFragment.kt b/app/src/main/java/com/keylesspalace/tusky/components/timeline/TimelineFragment.kt index 95bf4a9d1..f91750529 100644 --- a/app/src/main/java/com/keylesspalace/tusky/components/timeline/TimelineFragment.kt +++ b/app/src/main/java/com/keylesspalace/tusky/components/timeline/TimelineFragment.kt @@ -182,7 +182,7 @@ class TimelineFragment : if (adapter.itemCount == 0) { when (loadState.refresh) { is LoadState.NotLoading -> { - if (loadState.append is LoadState.NotLoading) { + if (loadState.append is LoadState.NotLoading && loadState.source.refresh is LoadState.NotLoading) { binding.statusView.show() binding.statusView.setup(R.drawable.elephant_friend_empty, R.string.message_empty, null) }