fix: crash in contact photo and auto download flags

This commit is contained in:
0x330a
2022-11-09 22:22:10 +11:00
parent 833fc66da2
commit 5180b826f3
3 changed files with 18 additions and 6 deletions

View File

@@ -40,10 +40,7 @@ public class ResourceContactPhoto implements FallbackContactPhoto {
foreground.setColorFilter(color, PorterDuff.Mode.SRC_ATOP);
}
Drawable gradient = context.getResources().getDrawable(ThemeUtil.isDarkTheme(context) ? R.drawable.avatar_gradient_dark
: R.drawable.avatar_gradient_light);
return new ExpandingLayerDrawable(new Drawable[] {background, foreground, gradient});
return new ExpandingLayerDrawable(new Drawable[] {background, foreground});
}
private static class ExpandingLayerDrawable extends LayerDrawable {