From 08d5dfa49c676a2e94860a2c8dcf337b5411bb4d Mon Sep 17 00:00:00 2001 From: litetex <40789489+litetex@users.noreply.github.com> Date: Fri, 16 Jul 2021 21:04:32 +0200 Subject: [PATCH] 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. --- .../java/org/schabi/newpipe/local/feed/FeedFragment.kt | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/local/feed/FeedFragment.kt b/app/src/main/java/org/schabi/newpipe/local/feed/FeedFragment.kt index c235b22df..a64ffee1e 100644 --- a/app/src/main/java/org/schabi/newpipe/local/feed/FeedFragment.kt +++ b/app/src/main/java/org/schabi/newpipe/local/feed/FeedFragment.kt @@ -167,14 +167,6 @@ class FeedFragment : BaseStateFragment() { } } - override fun setUserVisibleHint(isVisibleToUser: Boolean) { - super.setUserVisibleHint(isVisibleToUser) - - if (!isVisibleToUser && view != null) { - updateRelativeTimeViews() - } - } - override fun initListeners() { super.initListeners() feedBinding.refreshRootView.setOnClickListener { reloadContent() }