Loading src/com/android/bluetooth/pbap/BluetoothPbapService.java +4 −3 Original line number Diff line number Diff line Loading @@ -627,15 +627,16 @@ public class BluetoothPbapService extends Service { if (state != mState) { if (DEBUG) Log.d(TAG, "Pbap state " + mState + " -> " + state + ", result = " + result); Intent intent = new Intent(BluetoothPbap.PBAP_STATE_CHANGED_ACTION); intent.putExtra(BluetoothPbap.PBAP_PREVIOUS_STATE, mState); int prevState = mState; mState = state; Intent intent = new Intent(BluetoothPbap.PBAP_STATE_CHANGED_ACTION); intent.putExtra(BluetoothPbap.PBAP_PREVIOUS_STATE, prevState); intent.putExtra(BluetoothPbap.PBAP_STATE, mState); intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mRemoteDevice); sendBroadcast(intent, BLUETOOTH_PERM); try { mBluetoothService.sendConnectionStateChange(mRemoteDevice, BluetoothProfile.PBAP, mState, state); mState, prevState); } catch (RemoteException e) { Log.e(TAG, "RemoteException in sendConnectionStateChange"); } Loading Loading
src/com/android/bluetooth/pbap/BluetoothPbapService.java +4 −3 Original line number Diff line number Diff line Loading @@ -627,15 +627,16 @@ public class BluetoothPbapService extends Service { if (state != mState) { if (DEBUG) Log.d(TAG, "Pbap state " + mState + " -> " + state + ", result = " + result); Intent intent = new Intent(BluetoothPbap.PBAP_STATE_CHANGED_ACTION); intent.putExtra(BluetoothPbap.PBAP_PREVIOUS_STATE, mState); int prevState = mState; mState = state; Intent intent = new Intent(BluetoothPbap.PBAP_STATE_CHANGED_ACTION); intent.putExtra(BluetoothPbap.PBAP_PREVIOUS_STATE, prevState); intent.putExtra(BluetoothPbap.PBAP_STATE, mState); intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mRemoteDevice); sendBroadcast(intent, BLUETOOTH_PERM); try { mBluetoothService.sendConnectionStateChange(mRemoteDevice, BluetoothProfile.PBAP, mState, state); mState, prevState); } catch (RemoteException e) { Log.e(TAG, "RemoteException in sendConnectionStateChange"); } Loading