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

Commit 186d4691 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "VolumeControlService: Fix for possible crash" am: 5ab7d8e3 am: 48b575f6 am: 5cb88c21

parents ed71817b 5cb88c21
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -417,6 +417,11 @@ public class VolumeControlService extends ProfileService {
     */
    @VisibleForTesting(visibility = VisibleForTesting.Visibility.PACKAGE)
    public boolean okToConnect(BluetoothDevice device) {
        /* Make sure device is valid */
        if (device == null) {
            Log.e(TAG, "okToConnect: Invalid device");
            return false;
        }
        // Check if this is an incoming connection in Quiet mode.
        if (mAdapterService.isQuietModeEnabled()) {
            Log.e(TAG, "okToConnect: cannot connect to " + device + " : quiet mode enabled");