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

Commit a949f467 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update generation when there is device connection state changed."

parents 54290696 a7b43790
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -67,7 +67,9 @@ status_t AudioPolicyManager::setDeviceConnectionState(audio_devices_t device,
                                                      const char *device_address,
                                                      const char *device_name)
{
    return setDeviceConnectionStateInt(device, state, device_address, device_name);
    status_t status = setDeviceConnectionStateInt(device, state, device_address, device_name);
    nextAudioPortGeneration();
    return status;
}

void AudioPolicyManager::broadcastDeviceConnectionState(audio_devices_t device,