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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user