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

Commit ada31b5a authored by brycelee's avatar brycelee
Browse files

Protect against null mDreamToken.

A wakelock wrapped handler was added previously to help protect access
to mDreamToken. This led to an increase in binder calls due to the
wakelock acquisition. Even though this was adjusted to account for
operations already on the main thread, this is a deviation from the
original behavior execution proceeded on any thread. This change
restores the original behavior and instead now checks the nullability
of mDreamToken before using it.

Test: atest DreamServiceTest
Fixes: 408928049
Fixes: 408393208
Flag: EXEMPT bugfix
Change-Id: If7ea441b808a467c3f777f7ba4b36e319e96a411
parent f97b7136
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