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

Commit 59d8f462 authored by Shuo Qian's avatar Shuo Qian
Browse files

Add some logging to show why audio tone is not present.

Test: build
Bug: 194889768
Change-Id: I224c5a210a86ca61c3732409e34af96715ecee48
parent 06ad6c21
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -85,8 +85,14 @@ public class RingtoneFactory {
            if (UserManager.get(contextToUse).isUserUnlocked(contextToUse.getUserId())) {
                defaultRingtoneUri = RingtoneManager.getActualDefaultRingtoneUri(contextToUse,
                        RingtoneManager.TYPE_RINGTONE);
                if (defaultRingtoneUri == null) {
                    Log.i(this, "getRingtone: defaultRingtoneUri for user is null.");
                }
            } else {
                defaultRingtoneUri = Settings.System.DEFAULT_RINGTONE_URI;
                if (defaultRingtoneUri == null) {
                    Log.i(this, "getRingtone: Settings.System.DEFAULT_RINGTONE_URI is null.");
                }
            }
            if (defaultRingtoneUri == null) {
                return null;