diff options
Diffstat (limited to 'src/com/android/bluetooth/sap/SapServer.java')
-rw-r--r-- | src/com/android/bluetooth/sap/SapServer.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/bluetooth/sap/SapServer.java b/src/com/android/bluetooth/sap/SapServer.java index c365b487d..91349d074 100644 --- a/src/com/android/bluetooth/sap/SapServer.java +++ b/src/com/android/bluetooth/sap/SapServer.java @@ -50,8 +50,8 @@ import com.google.protobuf.micro.CodedOutputStreamMicro; public class SapServer extends Thread implements Callback { private static final String TAG = "SapServer"; private static final String TAG_HANDLER = "SapServerHandler"; - public static final boolean DEBUG = Log.isLoggable(SapService.LOG_TAG, Log.DEBUG); - public static final boolean VERBOSE = Log.isLoggable(SapService.LOG_TAG, Log.VERBOSE); + public static final boolean DEBUG = true; + public static final boolean VERBOSE = SapService.VERBOSE; private enum SAP_STATE { DISCONNECTED, CONNECTING, CONNECTING_CALL_ONGOING, CONNECTED, @@ -200,6 +200,7 @@ public class SapServer extends Thread implements Callback { } else { SapMessage msg = new SapMessage(SapMessage.ID_DISCONNECT_REQ); /* Force disconnect of RFCOMM - but first we need to clean up. */ + if(DEBUG) Log.d(TAG, "Cleaning up before force disconnecting rfcomm"); clearPendingRilResponses(msg); /* We simply need to forward to RIL, but not change state to busy - hence send and set |