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

Commit 663fb577 authored by Matthew Xie's avatar Matthew Xie Committed by Gerrit Code Review
Browse files

Merge "Use round() instead of ceil() in calculation of a2dp vol slider position"

parents 7315070f e296684e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -811,7 +811,7 @@ final class Avrcp {

    private int convertToAudioStreamVolume(int volume) {
        // Rescale volume to match AudioSystem's volume
        return (int) Math.ceil((double) volume*mAudioStreamMax/AVRCP_MAX_VOL);
        return (int) Math.round((double) volume*mAudioStreamMax/AVRCP_MAX_VOL);
    }

    private int convertToAvrcpVolume(int volume) {