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

Commit 6ffc214a authored by Matthew Xie's avatar Matthew Xie Committed by Android Git Automerger
Browse files

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

* commit 'dead7637':
  Use round() instead of ceil() in calculation of a2dp vol slider position
parents f97844ae dead7637
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -813,7 +813,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) {