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

Skip to content
Commit 850817b6 authored by Takumi Hori's avatar Takumi Hori Committed by Wang Han
Browse files

Sort activeSubscriptionInfoList according to API annotation

SubscriptionManager#getActiveSubscriptionInfoList() should return
sorted list by sim slot index then by subscription id, according to
API annotation in JavaDoc.

Issue:
After SIM swap on DSDS device, tabName of slot1 becomes "UNKNOWN" in
MobileNetworkSettings. When updating tabName, slotId is compared
with activeSubscriptionInfo list one by one in ASCENDING order.
But sometimes activeSubscriptionInfoList is NOT sorted.
In this case, slotId will be unmatched and tabName becomes "UNKNOWN".

Test: manual - Check that display name of subscription is shown
correctly in the tab of mobile network settings.
Bug: 111185160

Change-Id: I67ad0578c1202701dbbca6505458cf529f59570b
parent 2bb45ebc
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