fix "nothing here" flickering when starting Tusky (#2377)
This commit is contained in:
parent
72bb34bf27
commit
15304440ef
|
@ -182,7 +182,7 @@ class TimelineFragment :
|
||||||
if (adapter.itemCount == 0) {
|
if (adapter.itemCount == 0) {
|
||||||
when (loadState.refresh) {
|
when (loadState.refresh) {
|
||||||
is LoadState.NotLoading -> {
|
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.show()
|
||||||
binding.statusView.setup(R.drawable.elephant_friend_empty, R.string.message_empty, null)
|
binding.statusView.setup(R.drawable.elephant_friend_empty, R.string.message_empty, null)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue