Skip to content
Commit 87c7f411 authored by Kyunglyul Hyun's avatar Kyunglyul Hyun
Browse files

MediaRouter: Create BluetoothRouteProvider for each user

The bluetooth service manages the active device for each user
and sent broadcast for each user.

BluetoothRouteProvider was singleton and listened broadcast
from the owner (uid=0) only , which failed to catch correct events when
the foreground user is not the owner.

This CL fixes that by creating BluetoothRouteProvider per user and
listening to the events of each user.

Bug: 162541640
Test: manually open the output switcher and check bluetooth state with switching users
and run cts

Change-Id: Iabab6f7830ce0224b7f73a7c5cfb863aebf5562b
(cherry picked from commit 715b6488)
parent f237648d
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