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

Commit 8611c439 authored by Hall Liu's avatar Hall Liu Committed by Gerrit Code Review
Browse files

Merge "Check the ringer playing state before starting"

parents f6f0d808 66358487
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -170,6 +170,10 @@ public class AsyncRingtonePlayer {
            handleRepeat();
        } else {
            mRingtone.setLooping(true);
            if (mRingtone.isPlaying()) {
                Log.d(this, "Ringtone already playing.");
                return;
            }
            mRingtone.play();
            Log.i(this, "Play ringtone, looping.");
        }