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

Skip to content
Commit 8c82993e authored by sandeepjs's avatar sandeepjs Committed by Sandeep Jawalkar
Browse files

Replace HashMap with LinkedHashMap to guarantee the order

We are using HashMap in UiccCard to map portIndex <-> UiccPort.
During download process, we expect card.getUiccPortList()[0] inside getFirstActiveEuiccPort API to always return the same UiccPort for each call.

mUiccPorts.values() returns collection of unordered so the order is not guaranteed which causes card.getUiccPortList()[0] problem.

So we have replaced HashMap with LinkedHashMap to guarantee the order.

Test: Manual, added debug logs in getFirstActiveEuiccPort and verified
it always returns same port in E+E mode
Bug: 237560274

Change-Id: I722a222d2b122da873e8bb9e9d604e09a6793c7f
parent aa65ef1c
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