Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6793c178 authored by Andrew Cheng's avatar Andrew Cheng
Browse files

Update Companion to new BluetoothConnectionCallback

Added new disconnect reason to BluetoothConnectionCallback.

Bug: 177668957
Test: manual, ensure disconnect reasons appear in logcat
Change-Id: I322e0c4241644a9cf8f4d99c6f3920a8715eb5e2
parent af705d26
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -726,7 +726,9 @@ public class CompanionDeviceManagerService extends SystemService implements Bind
        }

        @Override
        public void onDeviceDisconnected(BluetoothDevice device) {
        public void onDeviceDisconnected(BluetoothDevice device, @DisconnectReason int reason) {
            Slog.d(LOG_TAG, device.getAddress() + " disconnected w/ reason: (" + reason + ") "
                    + BluetoothAdapter.BluetoothConnectionCallback.disconnectReasonText(reason));
            CompanionDeviceManagerService.this.onDeviceDisconnected(device.getAddress());
        }
    }