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

Commit 0c3e45d6 authored by Tyler Gunn's avatar Tyler Gunn Committed by Android (Google) Code Review
Browse files

Merge "Fix issue where InCallTonePlayer could fail to stop ringback." into tm-dev

parents 7ad98a55 c3ea0783
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -510,11 +510,10 @@ public class InCallTonePlayer extends Thread {
     */
    @VisibleForTesting
    public void stopTone() {
        if (mState == STATE_ON) {
        Log.i(this, "stopTone: Stopping the tone %d.", mToneId);
        // Notify the playback to end early.
        mPlaybackLatch.countDown();
        }

        mState = STATE_STOPPED;
    }