mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 11:28:34 +00:00
Fix improper tinting on screens when using FallbackPhoto.
This commit is contained in:
parent
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});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user