Loading packages/SettingsLib/src/com/android/settingslib/bluetooth/PbapServerProfile.java +7 −2 Original line number Diff line number Diff line Loading @@ -88,8 +88,13 @@ public final class PbapServerProfile implements LocalBluetoothProfile { } public boolean disconnect(BluetoothDevice device) { if (mService == null) return false; if (mService == null || device == null) return false; if (getConnectionStatus(device) == BluetoothProfile.STATE_CONNECTED) return mService.disconnect(); Log.d(TAG, "pbap server not connected to " + device.getAddress()); return false; } public int getConnectionStatus(BluetoothDevice device) { Loading Loading
packages/SettingsLib/src/com/android/settingslib/bluetooth/PbapServerProfile.java +7 −2 Original line number Diff line number Diff line Loading @@ -88,8 +88,13 @@ public final class PbapServerProfile implements LocalBluetoothProfile { } public boolean disconnect(BluetoothDevice device) { if (mService == null) return false; if (mService == null || device == null) return false; if (getConnectionStatus(device) == BluetoothProfile.STATE_CONNECTED) return mService.disconnect(); Log.d(TAG, "pbap server not connected to " + device.getAddress()); return false; } public int getConnectionStatus(BluetoothDevice device) { Loading