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:
@@ -389,7 +389,8 @@ public class WidgetConversationService extends RemoteViewsService {
|
||||
final Spannable colorStr = new SpannableString(statusText);
|
||||
if (showInRed) {
|
||||
colorStr.setSpan(new ForegroundColorSpan(
|
||||
mContext.getResources().getColor(R.color.timestamp_text_failed)),
|
||||
mContext.getResources().getColor(R.color.timestamp_text_failed,
|
||||
mContext.getTheme())),
|
||||
0, statusText.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
}
|
||||
remoteViews.setTextViewText(R.id.date, colorStr);
|
||||
|
||||
Reference in New Issue
Block a user