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

Commit 305151cb authored by Jean-Michel Trivi's avatar Jean-Michel Trivi Committed by android-build-merger
Browse files

AudioService: device connection intent: never send null action

am: 87a264df

Change-Id: I091ee6e837a42a8a330022db9b9b64a1789469dd
parents ab380663 87a264df
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -5433,6 +5433,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);
@@ -5506,9 +5510,7 @@ public class AudioService extends IAudioService.Stub
                    }
                }
            }
            if (device != AudioSystem.DEVICE_IN_WIRED_HEADSET) {
            sendDeviceConnectionIntent(device, state, address, deviceName);
            }
            updateAudioRoutes(device, state);
        }
    }