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

Commit d7738e13 authored by Robert-Reinhold Gross's avatar Robert-Reinhold Gross Committed by Automerger Merge Worker
Browse files

Merge "Check if getParameters reply contains the required key" into main am: d73ad26a

parents 00a2e22f d73ad26a
Loading
Loading
Loading
Loading
+14 −10
Original line number Diff line number Diff line
@@ -14678,12 +14678,14 @@ public class AudioService extends IAudioService.Stub
        final String key = "additional_output_device_delay";
        final String reply = AudioSystem.getParameters(
                key + "=" + device.getInternalType() + "," + device.getAddress());
        long delayMillis;
        long delayMillis = 0;
        if (reply.contains(key)) {
            try {
                delayMillis = Long.parseLong(reply.substring(key.length() + 1));
            } catch (NullPointerException e) {
                delayMillis = 0;
            }
        }
        return delayMillis;
    }
@@ -14708,12 +14710,14 @@ public class AudioService extends IAudioService.Stub
        final String key = "max_additional_output_device_delay";
        final String reply = AudioSystem.getParameters(
                key + "=" + device.getInternalType() + "," + device.getAddress());
        long delayMillis;
        long delayMillis = 0;
        if (reply.contains(key)) {
            try {
                delayMillis = Long.parseLong(reply.substring(key.length() + 1));
            } catch (NullPointerException e) {
                delayMillis = 0;
            }
        }
        return delayMillis;
    }