Fix null pointer exception on missing ringtone

pull/1719/head
Alex Baker 3 years ago
parent 3e1fab6e3e
commit 1de07c8937

@ -274,7 +274,7 @@ class Notifications : InjectingPreferenceFragment() {
preference.summary = if (uri == default) {
getString(R.string.settings_default)
} else {
RingtoneManager.getRingtone(context, uri).getTitle(context)
RingtoneManager.getRingtone(context, uri)?.getTitle(context)
}
}
true

Loading…
Cancel
Save