OSDN Git Service

Check the device is connected when receive onProfileConnectionStateChanged()
authorhughchen <hughchen@google.com>
Tue, 31 Jul 2018 08:09:17 +0000 (16:09 +0800)
committerhughchen <hughchen@google.com>
Tue, 31 Jul 2018 08:49:12 +0000 (16:49 +0800)
commit70758584dc7dc8ec66127fb315602fb47a4f0d92
tree5f1d37b1331981ac7df63000c2e36e31531eab66
parent75bafefa49df27276eece750b863e6b6adfb6f89
Check the device is connected when receive onProfileConnectionStateChanged()

Use isFilterMatched() to decide the prefernce should be added
or removed when receive onProfileConnectionStateChanged()

Bug: 80161203
Test: make -j42 RunSettingsRoboTests
Change-Id: Icccdb9007b587d3f481a23856edd7b2f7c9b04e0
src/com/android/settings/bluetooth/AvailableMediaBluetoothDeviceUpdater.java
src/com/android/settings/bluetooth/BluetoothDeviceUpdater.java
src/com/android/settings/bluetooth/ConnectedBluetoothDeviceUpdater.java
src/com/android/settings/bluetooth/SavedBluetoothDeviceUpdater.java
tests/robotests/src/com/android/settings/bluetooth/SavedBluetoothDeviceUpdaterTest.java