Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e85aa3b authored by Chaohui Wang's avatar Chaohui Wang
Browse files

Eagerly load PackageInfo to avoid flaky

Bug: 314562958
Test: manual - All apps > app detail
Change-Id: Ic225818299f5b38e2a94020a04fccc4005f95158
parent 77c2a331
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ class PackageInfoPresenter(
            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.