mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
Fix a crash issue
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
7a26e1d069
commit
ca72cd5cd0
@ -453,7 +453,9 @@ public class CallNotificationController extends BaseController {
|
||||
script.forEach(output);
|
||||
output.copyTo(resource);
|
||||
|
||||
if (backgroundImageView != null) {
|
||||
backgroundImageView.setImageDrawable(new BitmapDrawable(resource));
|
||||
}
|
||||
} else if (AvatarStatusCodeHolder.getInstance().getStatusCode() == 201) {
|
||||
ColorArt colorArt = new ColorArt(resource);
|
||||
int color = colorArt.getBackgroundColor();
|
||||
@ -463,9 +465,11 @@ public class CallNotificationController extends BaseController {
|
||||
hsv[2] *= 0.75f;
|
||||
color = Color.HSVToColor(hsv);
|
||||
|
||||
if (backgroundImageView != null) {
|
||||
backgroundImageView.setImageDrawable(new ColorDrawable(color));
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user