Merge "Better format channel masks in AudioProfile.toString()." into sc-dev

This commit is contained in:
TreeHugger Robot
2021-03-23 22:58:33 +00:00
committed by Android (Google) Code Review

View File

@@ -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(", "));
}
}