Loading src/com/android/bluetooth/pan/PanService.java +6 −1 Original line number Diff line number Diff line Loading @@ -206,12 +206,17 @@ public class PanService extends ProfileService { break; case MESSAGE_CONNECT_STATE_CHANGED: { ConnectState cs = (ConnectState) msg.obj; BluetoothDevice device = getDevice(cs.addr); final BluetoothDevice device = getDevice(cs.addr); // TBD get iface from the msg if (DBG) { Log.d(TAG, "MESSAGE_CONNECT_STATE_CHANGED: " + device + " state: " + cs.state); } // It could be null if the connection up is coming when the Bluetooth is turning // off. if (device == null) { break; } handlePanDeviceStateChange(device, mPanIfName /* iface */, convertHalState(cs.state), cs.local_role, cs.remote_role); } Loading Loading
src/com/android/bluetooth/pan/PanService.java +6 −1 Original line number Diff line number Diff line Loading @@ -206,12 +206,17 @@ public class PanService extends ProfileService { break; case MESSAGE_CONNECT_STATE_CHANGED: { ConnectState cs = (ConnectState) msg.obj; BluetoothDevice device = getDevice(cs.addr); final BluetoothDevice device = getDevice(cs.addr); // TBD get iface from the msg if (DBG) { Log.d(TAG, "MESSAGE_CONNECT_STATE_CHANGED: " + device + " state: " + cs.state); } // It could be null if the connection up is coming when the Bluetooth is turning // off. if (device == null) { break; } handlePanDeviceStateChange(device, mPanIfName /* iface */, convertHalState(cs.state), cs.local_role, cs.remote_role); } Loading