3469: Do not jump in the list on the (second) refresh (#3471)

This commit is contained in:
UlrichKu 2023-03-24 16:26:50 +01:00 committed by GitHub
parent 444a1c0e48
commit b70e4be305
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -178,8 +178,12 @@ class ViewThreadFragment :
threadProgressBar = getProgressBarJob(binding.threadProgressBar, 500)
threadProgressBar.start()
if (viewModel.isInitialLoad) {
adapter.submitList(listOf(uiState.statusViewDatum))
// else this "submit one and then all on success below" will always center on the one
}
revealButtonState = uiState.revealButton
binding.swipeRefreshLayout.isRefreshing = false