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

Skip to content
Commit 8c7d565a authored by vagdevi's avatar vagdevi Committed by Vagdevi Kondeti
Browse files

Fix WorkSource clientId detection

Initialize mActiveWakeLockWorkSource so there can be no chance
of two identical worksources being added/removed with each other.

In existing WorkSource logic, if worksources do equal each other,
then size decrements while uid and name exist - this causes
the clientId to be null since it is empty, even though the
clientId value exists. Test added in WorkSourceTest at ag/4627499
and aosp/729235.

Bug: 111652977
Test: locally, ag/4627499, aosp/729235
Change-Id: If23a20f26d916ef059ff02b727f8560de5f68e00
parent 6ca66f59
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