Removed updateRelativeTimeViews when the activity is paused
We don't need to call ``updateRelativeTimeViews`` when the activity is paused, because the user likely won't notice it. Despite that onResume already calls ``updateRelativeTimeViews`` so there is no need to do that twice.
This commit is contained in:
parent
e7f339a946
commit
08d5dfa49c
1 changed files with 0 additions and 8 deletions
|
@ -167,14 +167,6 @@ class FeedFragment : BaseStateFragment<FeedState>() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun setUserVisibleHint(isVisibleToUser: Boolean) {
|
|
||||||
super.setUserVisibleHint(isVisibleToUser)
|
|
||||||
|
|
||||||
if (!isVisibleToUser && view != null) {
|
|
||||||
updateRelativeTimeViews()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun initListeners() {
|
override fun initListeners() {
|
||||||
super.initListeners()
|
super.initListeners()
|
||||||
feedBinding.refreshRootView.setOnClickListener { reloadContent() }
|
feedBinding.refreshRootView.setOnClickListener { reloadContent() }
|
||||||
|
|
Loading…
Reference in a new issue