summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Evan Laird <evanlaird@google.com> 2023-01-20 17:35:20 -0500
committer Evan Laird <evanlaird@google.com> 2023-02-01 12:21:23 -0500
commitfb60e153ffaba4ae1cf66e54eb62ab62b63d0ce3 (patch)
tree740fdee1e9ddd2caac9acf38732dc6b44a1c4922 /libs/androidfw/ApkParsing.cpp
parente43cc99e308e6a19599c010a057336c4334120c1 (diff)
[Sb refactor] Implement DataEnabledChangedListener
This CL changes the behavior of checking for mobile data enabled. The old pipeline would await telephony callbacks and then poll for `TelephonyManager.isDataConnectionAllowed`. Problem is that there was a race condition with watching the settings and polling this field, so it was often wrong on the first read. This change implements the newer TelephonyCallback.DataEnabledChangedListener, which can supplant the old polling method and simplify our repositories. Bug: 238425913 Bug: 260112365 Test: MobileConnectionRepositoryTest Change-Id: Ied9eea844501cd03100d85286993f85df671b37d
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions