Messaging: Fix warnings about drawables and colors

* They need the theme provided now
* Follow the suggestion by AS
  (sometimes we use ResourcesCompat, sometimes not)

Change-Id: Ie3023fee13a6fc04bd4b912721ba19dcc08befba
This commit is contained in:
Michael W
2024-12-26 14:55:13 +01:00
parent fd63d5f125
commit d430161ca0
17 changed files with 116 additions and 71 deletions
@@ -1134,7 +1134,7 @@ public abstract class MessageNotificationState extends NotificationState {
final SpannableStringBuilder spanBuilder = new SpannableStringBuilder();
spanBuilder.append(text);
spanBuilder.setSpan(new ForegroundColorSpan(context.getResources().getColor(
R.color.notification_warning_color)), 0, text.length(),
R.color.notification_warning_color, context.getTheme())), 0, text.length(),
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
return spanBuilder;
}