Loading src/com/android/bluetooth/map/BluetoothMapContentObserver.java +2 −2 Original line number Diff line number Diff line Loading @@ -262,8 +262,8 @@ public class BluetoothMapContentObserver { Log.d(TAG, "sendEvent: " + evt.eventType + " " + evt.handle + " " + evt.folder + " " + evt.oldFolder + " " + evt.msgType.name()); if (mMnsClient == null) { Log.d(TAG, "sendEvent: No MNS client registered - don't send event"); if (mMnsClient == null || mMnsClient.isConnected() == false) { Log.d(TAG, "sendEvent: No MNS client registered or connected- don't send event"); return; } Loading src/com/android/bluetooth/map/BluetoothMnsObexClient.java +6 −4 Original line number Diff line number Diff line Loading @@ -115,7 +115,7 @@ public class BluetoothMnsObexClient { return mConnected; } public void disconnect() { public synchronized void disconnect() { if(D) Log.d(TAG, "BluetoothMnsObexClient: disconnect"); acquireMnsLock(); try { Loading Loading @@ -186,12 +186,14 @@ public class BluetoothMnsObexClient { /* Connect if we do not have a connection, and start the content observers providing * this thread as Handler. */ if(mObserverRegistered == false) { synchronized (this) { if(mObserverRegistered == false && mObserver != null) { mObserver.registerObserver(this, masId); mObserverRegistered = true; } } } } public void connect() { Log.d(TAG, "handleRegistration: connect 2"); Loading Loading
src/com/android/bluetooth/map/BluetoothMapContentObserver.java +2 −2 Original line number Diff line number Diff line Loading @@ -262,8 +262,8 @@ public class BluetoothMapContentObserver { Log.d(TAG, "sendEvent: " + evt.eventType + " " + evt.handle + " " + evt.folder + " " + evt.oldFolder + " " + evt.msgType.name()); if (mMnsClient == null) { Log.d(TAG, "sendEvent: No MNS client registered - don't send event"); if (mMnsClient == null || mMnsClient.isConnected() == false) { Log.d(TAG, "sendEvent: No MNS client registered or connected- don't send event"); return; } Loading
src/com/android/bluetooth/map/BluetoothMnsObexClient.java +6 −4 Original line number Diff line number Diff line Loading @@ -115,7 +115,7 @@ public class BluetoothMnsObexClient { return mConnected; } public void disconnect() { public synchronized void disconnect() { if(D) Log.d(TAG, "BluetoothMnsObexClient: disconnect"); acquireMnsLock(); try { Loading Loading @@ -186,12 +186,14 @@ public class BluetoothMnsObexClient { /* Connect if we do not have a connection, and start the content observers providing * this thread as Handler. */ if(mObserverRegistered == false) { synchronized (this) { if(mObserverRegistered == false && mObserver != null) { mObserver.registerObserver(this, masId); mObserverRegistered = true; } } } } public void connect() { Log.d(TAG, "handleRegistration: connect 2"); Loading