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

Skip to content
Commit 67d9c56f authored by Achim Thesmann's avatar Achim Thesmann
Browse files

Split checkBackgroundActivityStart

This creates 2 partial methods, to calculate the result for each brach
(PI creator, PI sender) and one to orchestrate if they are called and
which result to use.
This enables logging the cases that might be affected by requiring
explicit opt-in from the PI creator (in addition to the sender which is
enforced since Android U).

Implementation details:
I intentionally tried to not refactor a lot as the change is already
difficult (and dangerous) enough. There is lot of potential for
optimization by using the fields of the new InternalState object which
for now is only filled in the orgestration method.
I split some fields that were shared between sender and creator
branches, e.g. callerApp.

Test: atest BackgroundActivityLaunchTest
Bug: 306059525
Change-Id: I5e10e159b488812b054aee388766fa44bd853506
parent 6e7cf312
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment