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
@@ -42,11 +42,12 @@ public class ViewPagerTabStrip extends LinearLayout {
super(context, attrs);
final Resources res = context.getResources();
final Resources.Theme theme = context.getTheme();
mSelectedUnderlineThickness =
res.getDimensionPixelSize(R.dimen.pager_tab_underline_selected);
int underlineColor = res.getColor(R.color.contact_picker_tab_underline);
int backgroundColor = res.getColor(R.color.action_bar_background_color);
int underlineColor = res.getColor(R.color.contact_picker_tab_underline, theme);
int backgroundColor = res.getColor(R.color.action_bar_background_color, theme);
mSelectedUnderlinePaint = new Paint();
mSelectedUnderlinePaint.setColor(underlineColor);