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

Skip to content
Commit 7cfc1c2d authored by Hui Yu's avatar Hui Yu
Browse files

Fix a outer loop iterates on item that is removed by inner loop problem.

updateForegroundApps() has the outer loop that iterate on mActiveForegroundApps,
but inside the loop stopAllForegroundServicesLocked() calls setServiceForegroundInnerLocked()
which calls decActiveForegroundAppLocked() to remove item from
mActiveForegroundApps, the end result is an ArrayIndexOutOfBoundsException.

Bug: 243841000
Test: build and run
Change-Id: Ia64816799fb7d36c481f382496c035e2ab85c2a3
parent 47a47f3e
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