}
protected boolean stop() {
- mStateMachine.quit();
+ // TODO(BT) mStateMachine.quit();
return true;
}
mCleaningUp = true;
if (mAdapterStateMachine != null) {
- mAdapterStateMachine.quit();
+ // TODO(BT) mAdapterStateMachine.quit();
mAdapterStateMachine.cleanup();
mAdapterStateMachine = null;
}
if (mBondStateMachine != null) {
- mBondStateMachine.quit();
+ // TODO(BT) mBondStateMachine.quit();
mBondStateMachine.cleanup();
mBondStateMachine = null;
}
@Override
public boolean processMessage(Message msg) {
- if (msg.what == SM_QUIT_CMD) {
+ /* TODO(BT) if (msg.what == SM_QUIT_CMD) {
Log.d(TAG, "Received quit request...");
return false;
- }
+ } */
int requestId = msg.arg1;
switch(msg.what) {
@Override
public boolean processMessage(Message msg) {
- if (msg.what == SM_QUIT_CMD) {
- Log.d(TAG, "Received quit request...");
- return false;
- }
+ // TODO(BT)
+ // if (msg.what == SM_QUIT_CMD) {
+ // Log.d(TAG, "Received quit request...");
+ // return false;
+ // }
BluetoothDevice dev = (BluetoothDevice)msg.obj;
@Override
public boolean processMessage(Message msg) {
- if (msg.what == SM_QUIT_CMD) {
- Log.d(TAG, "PendingCommandState(): Received quit request...");
- return false;
- }
+ // TODO(BT)
+ // if (msg.what == SM_QUIT_CMD) {
+ // Log.d(TAG, "PendingCommandState(): Received quit request...");
+ // return false;
+ // }
BluetoothDevice dev = (BluetoothDevice)msg.obj;
boolean result = false;
} catch (Exception e) {
Log.w(TAG,"Unable to unregister headset receiver",e);
}
- mStateMachine.quit();
+ // TODO(BT) mStateMachine.quit();
return true;
}