1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-14 02:37:30 +00:00

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

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)