mirror of
https://github.com/accelforce/Yuito
synced 2024-12-23 05:55:20 +01:00
3469: Do not jump in the list on the (second) refresh (#3471)
This commit is contained in:
parent
444a1c0e48
commit
b70e4be305
@ -178,7 +178,11 @@ class ViewThreadFragment :
|
||||
threadProgressBar = getProgressBarJob(binding.threadProgressBar, 500)
|
||||
threadProgressBar.start()
|
||||
|
||||
adapter.submitList(listOf(uiState.statusViewDatum))
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user