diff options
Diffstat (limited to 'media')
-rw-r--r-- | media/java/android/media/Ringtone.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/media/java/android/media/Ringtone.java b/media/java/android/media/Ringtone.java index 2f96d1f..b92b5d9 100644 --- a/media/java/android/media/Ringtone.java +++ b/media/java/android/media/Ringtone.java @@ -222,6 +222,11 @@ public class Ringtone { actualUri = RingtoneManager.getActualDefaultRingtoneUri(context, RingtoneManager.getDefaultType(uri)); } + if (actualUri == null) { + title = context + .getString(com.android.internal.R.string.ringtone_default); + return title; + } String actualTitle = getTitle( context, actualUri, false /*followSettingsUri*/, allowRemote); title = context |