Skip to content

Commit

Permalink
Merge pull request #1727 from Infomaniak/vertical-scroll
Browse files Browse the repository at this point in the history
Add missing backup of Thread vertical scroll value
  • Loading branch information
KevinBoulongne authored Mar 1, 2024
2 parents 890d1d6 + 19c9907 commit 151efd4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ class ThreadFragment : Fragment() {
updateNavigationIcon()
}

override fun onStop() {
threadViewModel.verticalScroll = binding.messagesListNestedScrollView.scrollY
super.onStop()
}

override fun onDestroyView() {
threadAdapter.resetCallbacks()
super.onDestroyView()
Expand Down

0 comments on commit 151efd4

Please sign in to comment.