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

Commit a36539cf authored by Gurpreet Ghai's avatar Gurpreet Ghai Committed by android-build-merger
Browse files

Merge "Fix ANR due to long wait for synchronization lock" am: 9193014e

am: ad4e3c5d

Change-Id: Ib145ddd3769145f19387b438b55eaf495894ef4f
parents 11942417 ad4e3c5d
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -194,8 +194,13 @@ public class LocalBluetoothAdapter {
        return mState;
    }

    synchronized void setBluetoothStateInt(int state) {
    void setBluetoothStateInt(int state) {
        synchronized(this) {
            if (mState == state) {
                return;
            }
            mState = state;
        }

        if (state == BluetoothAdapter.STATE_ON) {
            // if mProfileManager hasn't been constructed yet, it will