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

Commit f119808e authored by Luca Stefani's avatar Luca Stefani
Browse files

Recorder: Remove not needed & 0xff

The byte is already bounded to <= 0xff per definition.

Change-Id: Id68fd6f931b215d83d10a136310d2d5e37f85be3
parent 4d384f88
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -155,7 +155,7 @@ public class HighQualityRecorder implements SoundRecording {
                            if (status != 0) {
                                if (mTrackAmplitude.get()) {
                                    for (int i = 0; i < status; i = i + 2) {
                                        int value = Math.abs(data[i] & 0xff | data[i + 1] << 8);
                                        int value = Math.abs(data[i] | data[i + 1] << 8);
                                        if (mMaxAmplitude < value) {
                                            mMaxAmplitude = value;
                                        }