[DO NOT MERGE] Update title for null uri when setting changes

Currently, the title will not update at all if set to silent.

Bug: 130445562
Test: make RunSettingsRoboTests -j48
Change-Id: Id8fc0182adb37c05436f5924b7dcdffb9d994e0d
This commit is contained in:
Christine Franks
2019-08-01 11:09:16 -07:00
parent 4685c785b9
commit ea14373666

View File

@@ -55,7 +55,7 @@ public abstract class RingtonePreferenceControllerBase extends AbstractPreferenc
final CharSequence summary;
if (ringtoneUri == null) {
summary = null;
summary = mContext.getString(com.android.internal.R.string.ringtone_silent);
} else {
summary = Ringtone.getTitle(
mContext, ringtoneUri, false /* followSettingsUri */, true /* allowRemote */);