diff --git a/clients/android/NewsBlur/app/src/main/java/com/newsblur/activity/NbActivity.kt b/clients/android/NewsBlur/app/src/main/java/com/newsblur/activity/NbActivity.kt index 7bb0152c41..5055a5ce8f 100644 --- a/clients/android/NewsBlur/app/src/main/java/com/newsblur/activity/NbActivity.kt +++ b/clients/android/NewsBlur/app/src/main/java/com/newsblur/activity/NbActivity.kt @@ -65,7 +65,7 @@ open class NbActivity : AppCompatActivity() { // Facilitates the db updates by the sync service on the UI lifecycleScope.launch { - repeatOnLifecycle(Lifecycle.State.CREATED) { + repeatOnLifecycle(Lifecycle.State.STARTED) { launch { NbSyncManager.state.collectLatest { withContext(Dispatchers.Main) { diff --git a/clients/android/NewsBlur/app/src/main/java/com/newsblur/fragment/ItemSetFragment.java b/clients/android/NewsBlur/app/src/main/java/com/newsblur/fragment/ItemSetFragment.java index aa0d486637..f71c969afa 100644 --- a/clients/android/NewsBlur/app/src/main/java/com/newsblur/fragment/ItemSetFragment.java +++ b/clients/android/NewsBlur/app/src/main/java/com/newsblur/fragment/ItemSetFragment.java @@ -275,7 +275,7 @@ public void scrollToPosition(int position) { } protected FeedSet getFeedSet() { - return ((ItemsList) getActivity()).getFeedSet(); + return ((ItemsList) requireActivity()).getFeedSet(); } public void hasUpdated() {