commit | 5e85aa3b0763c9bcee5db62be6269dd927b03d2e | [log] [tgz] |
---|---|---|
author | Chaohui Wang <chaohuiw@google.com> | Mon Dec 04 20:11:30 2023 +0800 |
committer | Chaohui Wang <chaohuiw@google.com> | Mon Dec 04 13:23:50 2023 +0000 |
tree | f9216a4923f71801d82b15127d24466c4827f9c0 | |
parent | 77c2a331fb83388d4bed5e0c279341beb8fe8891 [diff] |
Eagerly load PackageInfo to avoid flaky Bug: 314562958 Test: manual - All apps > app detail Change-Id: Ic225818299f5b38e2a94020a04fccc4005f95158
diff --git a/src/com/android/settings/spa/app/appinfo/PackageInfoPresenter.kt b/src/com/android/settings/spa/app/appinfo/PackageInfoPresenter.kt index 1320f54..8d0f0bb 100644 --- a/src/com/android/settings/spa/app/appinfo/PackageInfoPresenter.kt +++ b/src/com/android/settings/spa/app/appinfo/PackageInfoPresenter.kt
@@ -77,7 +77,7 @@ userHandle = userHandle, ), ).map { getPackageInfo() } - .stateIn(coroutineScope + Dispatchers.Default, SharingStarted.WhileSubscribed(), null) + .stateIn(coroutineScope + Dispatchers.Default, SharingStarted.Eagerly, null) /** * Detects the package fully removed event, and close the current page.