Fetch articles only when the home activity is created. (#335)

This commit is contained in:
davidoskky 2021-03-11 22:04:10 +01:00 committed by GitHub
parent e62e04e13b
commit a025efbf3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,6 +189,8 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener {
handleDrawer()
handleSwipeRefreshLayout()
getElementsAccordingToTab()
}
private fun handleSwipeRefreshLayout() {
@ -350,8 +352,6 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener {
handleBottomBarActions()
getElementsAccordingToTab()
handleRecurringTask()
handleOfflineActions()