fix: Remove redundant page refresh after coming back

This commit is contained in:
LooKeR 2025-06-08 18:03:24 +05:30
parent d29b85544f
commit cc71af1402
No known key found for this signature in database
GPG Key ID: 6B59369FDB608FB9

View File

@ -45,12 +45,11 @@ class AppListFragment() : Fragment(), CursorOwner.Callback {
enum class Source(
val titleResId: Int,
val sections: Boolean,
val order: Boolean,
val updateAll: Boolean,
) {
AVAILABLE(stringRes.available, true, true, false),
INSTALLED(stringRes.installed, false, true, false),
UPDATES(stringRes.updates, false, false, true)
AVAILABLE(stringRes.available, true, false),
INSTALLED(stringRes.installed, false, false),
UPDATES(stringRes.updates, false, true)
}
constructor(source: Source) : this() {
@ -134,7 +133,6 @@ class AppListFragment() : Fragment(), CursorOwner.Callback {
super.onViewCreated(view, savedInstanceState)
layoutManagerState = savedInstanceState?.getParcelable(STATE_LAYOUT_MANAGER)
updateRequest()
viewLifecycleOwner.lifecycleScope.launch {
repeatOnLifecycle(Lifecycle.State.RESUMED) {
launch {