Fix improper tinting on screens when using FallbackPhoto.
This commit is contained in:
parent
6707f974a5
commit
469a4700d2
1 changed files with 1 additions and 1 deletions
|
@ -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});
|
||||
|
|
Loading…
Add table
Reference in a new issue