Quick fix for NPE when exiting the feed fragment

This commit is contained in:
Mauricio Colli 2019-10-08 23:59:11 -03:00
parent f69b6c85f8
commit a93e2cdc30
No known key found for this signature in database
GPG Key ID: F200BFD6F29DDD85
1 changed files with 6 additions and 1 deletions

View File

@ -111,7 +111,12 @@ class FeedFragment : BaseListFragment<FeedState, Unit>() {
override fun onDestroyOptionsMenu() {
super.onDestroyOptionsMenu()
activity.supportActionBar?.subtitle = null
activity?.supportActionBar?.subtitle = null
}
override fun onDestroy() {
super.onDestroy()
activity?.supportActionBar?.subtitle = null
}
///////////////////////////////////////////////////////////////////////////