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

Commit 81e075b9 authored by Tyler Gunn's avatar Tyler Gunn Committed by Automerger Merge Worker
Browse files

Merge "Fix the tones playing count in InCallTonePlayer" am: 3fa4d5b0

parents ce09699d 3fa4d5b0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -524,7 +524,7 @@ public class InCallTonePlayer extends Thread {
        mMainThreadHandler.post(new Runnable("ICTP.cUTP", mLock) {
            @Override
            public void loggedRun() {
                int newToneCount = sTonesPlaying.updateAndGet( t -> Math.min(0, t--));
                int newToneCount = sTonesPlaying.updateAndGet( t -> Math.max(0, --t));

                if (newToneCount == 0) {
                    Log.i(InCallTonePlayer.this,