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

Skip to content
Commit cc103033 authored by Jooyung Han's avatar Jooyung Han
Browse files

Do not call getStagedApexInfos repeatedly

IApexService.getStagedApexInfos(session) is a costly operation. The
current implementation calls the method more than necessary.

- StagingManager calls it to get the list of apex names for each
  observer.
- Each observer calls it to get the info for each staged apex name.

In this change,, StagingManager passes the result to all observers and
each observer just use the result.

Bug: 370712193
Test: StagingManagerTest
Test: StagedInstallInternalTest
Change-Id: Ica92dbad7e72ee3c853a0fc34069c89f47f072ee
parent 2b3c5dc2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment