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

Commit 3666944e authored by William Escande's avatar William Escande
Browse files

VolumeControl: Remove impossible null check

Bug: 324492914
Test: m Bluetooth | no logic modified
Flag: Exempt, no-op
Change-Id: Ifc48df4a73ab6ee0818f27071e2ffb89e09ef766
parent 219a93fb
Loading
Loading
Loading
Loading
+4 −10
Original line number Diff line number Diff line
@@ -298,17 +298,11 @@ public final class BluetoothVolumeControl implements BluetoothProfile, AutoClose
                return;
            }
            try {
                if (service != null) {
                    final SynchronousResultReceiver<Integer> recv =
                            SynchronousResultReceiver.get();
                final SynchronousResultReceiver<Integer> recv = SynchronousResultReceiver.get();
                mService.registerCallback(mCallback, mAttributionSource, recv);
                recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(null);
                }
            } catch (RemoteException e) {
                Log.e(
                        TAG,
                        "onBluetoothServiceUp: Failed to register" + "Volume Control callback",
                        e);
                Log.e(TAG, "onBluetoothServiceUp: Failed to register VolumeControl callback", e);
            } catch (TimeoutException e) {
                Log.e(TAG, e.toString() + "\n" + Log.getStackTraceString(new Throwable()));
            }