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

Commit 491c08b6 authored by Andy Hung's avatar Andy Hung Committed by Automerger Merge Worker
Browse files

Merge "SpatializerHelper: Fix device name translation" into tm-qpr-dev am: 48f95ff5

parents c0d9771e 48f95ff5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -571,7 +571,9 @@ public class SpatializerHelper {
    // There may be different devices with the same device type (aliasing).
    // We always send the full device state info on each change.
    private void logDeviceState(SADeviceState deviceState, String event) {
        final String deviceName = AudioSystem.getDeviceName(deviceState.mDeviceType);
        final int deviceType = AudioDeviceInfo.convertDeviceTypeToInternalDevice(
                deviceState.mDeviceType);
        final String deviceName = AudioSystem.getDeviceName(deviceType);
        new MediaMetrics.Item(METRICS_DEVICE_PREFIX + deviceName)
            .set(MediaMetrics.Property.ADDRESS, deviceState.mDeviceAddress)
            .set(MediaMetrics.Property.ENABLED, deviceState.mEnabled ? "true" : "false")