Improve: Don't Update Apps List on recreation

This commit is contained in:
LooKeR 2021-11-26 21:43:21 +05:30
parent f6ed9e9a92
commit 54719f28e7

View File

@ -109,7 +109,7 @@ class AppListFragment() : BaseFragment(), CursorOwner.Callback {
(recyclerView?.adapter as? AppListAdapter)?.apply {
this.cursor = cursor
lifecycleScope.launch {
repeatOnLifecycle(Lifecycle.State.CREATED) {
repeatOnLifecycle(Lifecycle.State.RESUMED) {
emptyText = when {
cursor == null -> ""
viewModel.searchQuery.first()