Browse Source

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

pull/3482/head
UlrichKu 3 years ago committed by GitHub
parent
commit
b70e4be305
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      app/src/main/java/com/keylesspalace/tusky/components/viewthread/ViewThreadFragment.kt

6
app/src/main/java/com/keylesspalace/tusky/components/viewthread/ViewThreadFragment.kt

@ -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…
Cancel
Save