Stop using escape HTML on SoundPicker title from intent
The method affects non-ascii characters from the string, but it might not be necessary to prevent injecting style into the window title.
Using a String instead of a CharSequence should be enough to remove any spannable elements from the intent extra.
Change-Id: Icd238bcff3e5c1dc7ecf27f97589ac01530f53da
Fix: 355350222
Test: manual
diff --git a/packages/SoundPicker/src/com/android/soundpicker/RingtonePickerActivity.java b/packages/SoundPicker/src/com/android/soundpicker/RingtonePickerActivity.java
index 0dd9275..8c3cce4 100644
--- a/packages/SoundPicker/src/com/android/soundpicker/RingtonePickerActivity.java
+++ b/packages/SoundPicker/src/com/android/soundpicker/RingtonePickerActivity.java
@@ -255,8 +255,8 @@
p.mTitle = getString(com.android.internal.R.string.ringtone_picker_title);
}
} else {
- // Make sure intents don't inject HTML elements.
- p.mTitle = Html.escapeHtml(p.mTitle.toString());
+ // Make sure intents don't inject spannable elements.
+ p.mTitle = p.mTitle.toString();
}
setupAlert();