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

Commit f30b3cfa authored by Android Build Merger (Role)'s avatar Android Build Merger (Role) Committed by Android (Google) Code Review
Browse files

Merge "AudioService: device connection intent: never send null action am:...

Merge "AudioService: device connection intent: never send null action am: 87a264df am: c164123c am: 9d71ca59"
parents 28a9d5e4 6f82e92d
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -5470,6 +5470,10 @@ public class AudioService extends IAudioService.Stub
            configureHdmiPlugIntent(intent, state);
        }

        if (intent.getAction() == null) {
            return;
        }

        intent.putExtra(CONNECT_INTENT_KEY_STATE, state);
        intent.putExtra(CONNECT_INTENT_KEY_ADDRESS, address);
        intent.putExtra(CONNECT_INTENT_KEY_PORT_NAME, deviceName);
@@ -5543,9 +5547,7 @@ public class AudioService extends IAudioService.Stub
                    }
                }
            }
            if (device != AudioSystem.DEVICE_IN_WIRED_HEADSET) {
            sendDeviceConnectionIntent(device, state, address, deviceName);
            }
            updateAudioRoutes(device, state);
        }
    }