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

Skip to content
Commit 9c2f83fb authored by Denis Hsu's avatar Denis Hsu
Browse files

Break the for loop searching after removing the item

When inserting a new HardwareConfig item, we will search the list to
find if it exists. If yes, remove it first then insert the new one.
The problem is that after removing it, we should break the for loop
searching else the size value is incorrect and cause
IndexOutOfBoundsException.

Test: manual, ran the test 30 times and it passed 30 times
Change-Id: I870eaa9be410e8e8b6c24ff748fb6c84c292c289
parent 2f587f01
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