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

Commit 30517ac4 authored by Brad Ebinger's avatar Brad Ebinger Committed by android-build-merger
Browse files

Add check for "Silent" Uri.EMPTY Ringtone Uri

am: ad54e7f0

* commit 'ad54e7f0':
  Add check for "Silent" Uri.EMPTY Ringtone Uri

Change-Id: I74143ae1faae397e75cd4de7dbe2302ab2fe629a
parents af5bcf69 ad54e7f0
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -121,6 +121,13 @@ public class AsyncRingtonePlayer {
            return;
        }

        // If the Ringtone Uri is EMPTY, then the "None" Ringtone has been selected. Do not play
        // anything.
        if(Uri.EMPTY.equals(incomingCall.getRingtone())) {
            mRingtone = null;
            return;
        }

        ThreadUtil.checkNotOnMainThread();
        Log.i(this, "Play ringtone.");