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

Commit 219a93fb authored by William Escande's avatar William Escande
Browse files

VolumeControl: Early return in onServiceConnected

Bug: 324492914
Test: m Bluetooth | no logic modified
Flag: Exempt, no-op
Change-Id: Ide3334aa89c48ee419bea03c38e0572b520948b6
parent 3ecba087
Loading
Loading
Loading
Loading
+16 −15
Original line number Diff line number Diff line
@@ -294,7 +294,9 @@ public final class BluetoothVolumeControl implements BluetoothProfile, AutoClose
        mService = IBluetoothVolumeControl.Stub.asInterface(service);
        // re-register the service-to-app callback
        synchronized (mCallbackExecutorMap) {
            if (!mCallbackExecutorMap.isEmpty()) {
            if (mCallbackExecutorMap.isEmpty()) {
                return;
            }
            try {
                if (service != null) {
                    final SynchronousResultReceiver<Integer> recv =
@@ -312,7 +314,6 @@ public final class BluetoothVolumeControl implements BluetoothProfile, AutoClose
            }
        }
    }
    }

    /** @hide */
    @Override