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

Commit 22bcd6da authored by Hall Liu's avatar Hall Liu Committed by android-build-merger
Browse files

Merge "Check the ringer playing state before starting" am: 8611c439

am: c3618957

Change-Id: Ie7c1b9ca0e359bbd7ff4ee2969c496d7ea566c5d
parents 65d3a104 c3618957
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.");
        }