clear followviewer subtitle on exit

This commit is contained in:
Austin Huang 2021-07-12 14:49:36 -04:00
parent 723b35ca33
commit 859b51af21
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
1 changed files with 5 additions and 0 deletions

View File

@ -98,6 +98,11 @@ class FollowViewerFragment : Fragment(), SwipeRefreshLayout.OnRefreshListener {
else viewModel.fetch(isFollowersList, null)
}
override fun onDestroy() {
fragmentActivity.supportActionBar?.subtitle = null
super.onDestroy()
}
private fun listFollows() {
viewModel.comparison.removeObservers(viewLifecycleOwner)
viewModel.status.removeObservers(viewLifecycleOwner)