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

Commit ffea315f authored by jiabin's avatar jiabin
Browse files

Better format channel masks in AudioProfile.toString().

Remove trailing ", " when converting channel masks array to string.

Bug: 183425455
Test: make
Change-Id: Iafdc91e13a4abefde6fa52c85402b563a4e1406e
parent 71cf0b48
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -88,7 +88,7 @@ public class AudioProfile {
        if (ints == null || ints.length == 0) {
            return "";
        }
        return Arrays.stream(ints).mapToObj(anInt -> String.format("0x%02X, ", anInt))
                .collect(Collectors.joining());
        return Arrays.stream(ints).mapToObj(anInt -> String.format("0x%02X", anInt))
                .collect(Collectors.joining(", "));
    }
}