Skip to content

Commit

Permalink
Set the correct subscription ID on the details fragment when there is…
Browse files Browse the repository at this point in the history
… only 1 active SIM
  • Loading branch information
christianrowlands committed Dec 17, 2023
1 parent d9add6a commit 7664920
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@ public Fragment createFragment(int position)
if (subscriptions.isEmpty())
{
args.putInt(NetworkDetailsFragment.SUBSCRIPTION_ID_KEY, CellularController.DEFAULT_SUBSCRIPTION_ID);
} else if (subscriptions.size() == 1)
{
// We only want to use the subscription info list if there are two active SIMs. If there is only
// one active SIM, then we will just use the default subscription ID which gets filtered out in
// the SurveyRecordProcessor. This prevents the "slot" field from getting set on all the records.
args.putInt(NetworkDetailsFragment.SUBSCRIPTION_ID_KEY, CellularController.DEFAULT_SUBSCRIPTION_ID);
} else
{
int subscriptionId = subscriptions.get(position).getSubscriptionId();
Expand Down

0 comments on commit 7664920

Please sign in to comment.