kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix improper tinting on screens when using FallbackPhoto.
rodzic
6707f974a5
commit
469a4700d2
|
@ -47,7 +47,7 @@ public final class FallbackPhoto80dp implements FallbackContactPhoto {
|
||||||
}
|
}
|
||||||
|
|
||||||
private @NonNull Drawable buildDrawable(@NonNull Context context) {
|
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 foreground = AppCompatResources.getDrawable(context, drawable80dp);
|
||||||
Drawable gradient = ThemeUtil.getThemedDrawable(context, R.attr.resource_placeholder_gradient);
|
Drawable gradient = ThemeUtil.getThemedDrawable(context, R.attr.resource_placeholder_gradient);
|
||||||
LayerDrawable drawable = new LayerDrawable(new Drawable[]{background, foreground, gradient});
|
LayerDrawable drawable = new LayerDrawable(new Drawable[]{background, foreground, gradient});
|
||||||
|
|
Ładowanie…
Reference in New Issue