summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/le/PeriodicAdvertisingManager.java
diff options
context:
space:
mode:
authorWilliam Escande <wescande@google.com>2022-01-21 16:29:09 +0100
committerWilliam Escande <wescande@google.com>2022-01-22 00:30:00 +0100
commitb03c7a893e077088a4467802a98a2812328136ff (patch)
tree53c9f67781118a29562031d8a96092cd78cd9a6c /framework/java/android/bluetooth/le/PeriodicAdvertisingManager.java
parentb8c57fa2e1c4cbac5eccc1b426fe6f632d47664c (diff)
Replace UserRestriction listener with an intent
Because Bluetooth is going mainline, we need to remove call to hidden API. UserManagerInternal and UserRestrictionsListener are hidden. There is a available Intent: ACTION_USER_RESTRICTIONS_CHANGED to advertise when we need to ask for the new restriction Using both registerReceiverForAllUsers and getSendingUser allow us to retrieve the user it was intended for Bug: 211851706 Test: Build + start bt Tag: #refactor Change-Id: I4924c4a1cc1388015aa1f9b0ab2c47b470d93871
Diffstat (limited to 'framework/java/android/bluetooth/le/PeriodicAdvertisingManager.java')
0 files changed, 0 insertions, 0 deletions