Messaging: Fix a few android related things

* NotificationBuilder.addPerson(String) -> .addPerson(Person)
* Wearableextenter.addPage deprecated without replacement
* Html.fromHtml(String) -> .fromHtml(String, int)
* Handlers need Loopers
* Resource-IDs are not final by default (if-else instead of switch-case)
* call super.onFinishInflate() in override of onFinishInflate()
* Configuration.locale -> configuration.getLocales().get(0)
* SimpleDateFormat needs localization as well
* AudioAttributes instead of setAudioStreamType()
* isDataEnabled() is a public method, no need for reflection anymore

Change-Id: Icd830768b86edca3e0b44f1edc6c57facc9f731a
This commit is contained in:
Michael W
2024-12-26 15:54:37 +01:00
parent e128bff457
commit d940ab74ad
33 changed files with 313 additions and 388 deletions
@@ -1084,7 +1084,7 @@ public abstract class MessageNotificationState extends NotificationState {
}
private static CharSequence convertHtmlAndStripUrls(final String s) {
final Spanned text = Html.fromHtml(s);
final Spanned text = Html.fromHtml(s, Html.FROM_HTML_MODE_LEGACY);
if (text instanceof Spannable) {
stripUrls((Spannable) text);
}