summaryrefslogtreecommitdiff
path: root/libs/androidfw/LocaleDataTables.cpp
diff options
context:
space:
mode:
author Evan Laird <evanlaird@google.com> 2023-02-08 15:37:25 -0500
committer Evan Laird <evanlaird@google.com> 2023-02-09 12:15:22 -0500
commitb83e1afc9d91b1cc071a0c1093bcf10973020824 (patch)
tree16a7b35b895ae79f2b99cdcf28e42d9cdac38e90 /libs/androidfw/LocaleDataTables.cpp
parentc5a9ef5573fa2d3439d20bb88a620db8d3bc03d5 (diff)
[Sb refactor] Move active data repo to connections repo
Since MobileIconsInteractor was always eagerly creating a mobile connection repository tracking the active data subscripton, this CL moves that to the MobileConnectionsRepository. This allows us to make th following changes: - Change activeMobileDataSubscriptionId to return null if the id is invalid - Expose the active mobile data repo as a nullable flow - Rework the isValidSubId() method to take this active subid into account - Same for the cached repos This change is specifically written to better handle the case where TelephonyCallback#onActiveDataSubscriptionIdChanged is called before SubscriptionManager#onSubscriptionsChanged is called. In that case, the old implementation would throw an exception for an invalid subId, despite having been given a valid subId from the system. Test: MobileConnectionsRepositoryTest Bug: 268146648 Change-Id: I39698d4d516a783fe17ae661fdcb220407d89486
Diffstat (limited to 'libs/androidfw/LocaleDataTables.cpp')
0 files changed, 0 insertions, 0 deletions