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

Commit 1a5a5cb9 authored by Rahul Sabnis's avatar Rahul Sabnis
Browse files

Catch IllegalStateException in Telecom when the Bluetooth process is

down

Bug: 291217971
Test: Manual
Change-Id: I182d99255d042acd0575914e8567196287d66d04
parent d3e04307
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -104,9 +104,13 @@ public class BluetoothDeviceManager {
                                logString = "Got BluetoothLeAudio: "
                                        + mBluetoothLeAudioService;
                                if (!mLeAudioCallbackRegistered) {
                                    try {
                                        mBluetoothLeAudioService.registerCallback(
                                                    mExecutor, mLeAudioCallbacks);
                                        mLeAudioCallbackRegistered = true;
                                    } catch (IllegalStateException e) {
                                        logString += ", but Bluetooth is down";
                                    }
                                }
                            } else {
                                logString = "Connected to non-requested bluetooth service." +