Fix improper tinting on screens when using FallbackPhoto.

master
Cody Henthorne 2020-06-17 12:40:43 -04:00 committed by Alan Evans
parent 6707f974a5
commit 469a4700d2
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ public final class FallbackPhoto80dp implements FallbackContactPhoto {
}
private @NonNull Drawable buildDrawable(@NonNull Context context) {
Drawable background = DrawableCompat.wrap(Objects.requireNonNull(AppCompatResources.getDrawable(context, R.drawable.circle_tintable)));
Drawable background = DrawableCompat.wrap(Objects.requireNonNull(AppCompatResources.getDrawable(context, R.drawable.circle_tintable))).mutate();
Drawable foreground = AppCompatResources.getDrawable(context, drawable80dp);
Drawable gradient = ThemeUtil.getThemedDrawable(context, R.attr.resource_placeholder_gradient);
LayerDrawable drawable = new LayerDrawable(new Drawable[]{background, foreground, gradient});