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

Commit 772d378b authored by Wenyi Wang's avatar Wenyi Wang Committed by Android (Google) Code Review
Browse files

Merge "Modify play method to handle silent ringtone"

parents 8a048bf8 f43ff474
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -59,6 +59,10 @@ class AsyncRingtonePlayer {
    /** Plays the ringtone. */
    void play(Uri ringtone) {
        Log.d(this, "Posting play.");
        if (ringtone == Uri.EMPTY) {
            Log.i(this, "Uri.EMPTY (silence -- not playing anything)");
            return;
        }
        postMessage(EVENT_PLAY, true /* shouldCreateHandler */, ringtone);
    }