summaryrefslogtreecommitdiffstats
path: root/src/com/android/bluetooth/map/BluetoothMapService.java
diff options
context:
space:
mode:
authorPauloftheWest <paulofthewest@google.com>2014-09-29 10:37:29 -0700
committerPauloftheWest <paulofthewest@google.com>2014-09-29 12:49:57 -0700
commit335b2b8f6f17c93a4c2b192c8e1b629e48b230b3 (patch)
treed66a1d3b2a6a667265fdffa9fd72a7a048338b71 /src/com/android/bluetooth/map/BluetoothMapService.java
parent20326a3263b8bd71ea98d5ea88e53cf0f6715d33 (diff)
downloadandroid_packages_apps_Bluetooth-335b2b8f6f17c93a4c2b192c8e1b629e48b230b3.tar.gz
android_packages_apps_Bluetooth-335b2b8f6f17c93a4c2b192c8e1b629e48b230b3.tar.bz2
android_packages_apps_Bluetooth-335b2b8f6f17c93a4c2b192c8e1b629e48b230b3.zip
Fixed a Bluetooth MAP bug.
+ Beforehand, if a user disabled MAP and then unpaired the device, then Settings would automatically deny future MAP requests from the device. Bug: 17391677 Change-Id: I068f37426ed6a044ed2b5e9391cd9dd00908f867
Diffstat (limited to 'src/com/android/bluetooth/map/BluetoothMapService.java')
-rwxr-xr-xsrc/com/android/bluetooth/map/BluetoothMapService.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/bluetooth/map/BluetoothMapService.java b/src/com/android/bluetooth/map/BluetoothMapService.java
index b1442ddd3..f016fb162 100755
--- a/src/com/android/bluetooth/map/BluetoothMapService.java
+++ b/src/com/android/bluetooth/map/BluetoothMapService.java
@@ -460,6 +460,8 @@ public class BluetoothMapService extends ProfileService {
switch (mState) {
case BluetoothMap.STATE_CONNECTED:
sendShutdownMessage();
+ /* Disconnect all connections and restart all MAS instances */
+ stopObexServerSessions(-1);
result = true;
break;
default: