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

Commit 5214e84b authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix NPE when Bluetooth turn off" am: 2eb3fd87

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Bluetooth/+/1838475

Change-Id: I2099a7221fc0199a593744b753125efacbed5bf6
parents 0fa00e08 2eb3fd87
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -202,9 +202,11 @@ public class A2dpService extends ProfileService {
            }
            mStateMachines.clear();
        }

        if (mStateMachinesThread != null) {
            mStateMachinesThread.quitSafely();
            mStateMachinesThread = null;

        }
        // Step 2: Reset maximum number of connected audio devices
        mMaxConnectedAudioDevices = 1;