Loading android/app/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 android/app/src/com/android/bluetooth/map/BluetoothMnsObexClient.java +6 −4 Original line number Diff line number Diff line Loading @@ -119,7 +119,7 @@ public class BluetoothMnsObexClient { * Disconnect the connection to MNS server. * Call this when the MAS client requests a de-registration on events. */ public void disconnect() { public synchronized void disconnect() { try { if (mClientSession != null) { mClientSession.disconnect(null); Loading Loading @@ -203,12 +203,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
android/app/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
android/app/src/com/android/bluetooth/map/BluetoothMnsObexClient.java +6 −4 Original line number Diff line number Diff line Loading @@ -119,7 +119,7 @@ public class BluetoothMnsObexClient { * Disconnect the connection to MNS server. * Call this when the MAS client requests a de-registration on events. */ public void disconnect() { public synchronized void disconnect() { try { if (mClientSession != null) { mClientSession.disconnect(null); Loading Loading @@ -203,12 +203,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