From 79bdb7d640c739a708fcb5d7e54a822ae63bca86 Mon Sep 17 00:00:00 2001 From: Mario Danic Date: Fri, 7 Dec 2018 16:54:50 +0100 Subject: [PATCH] Fix #363 Signed-off-by: Mario Danic --- .../talk/controllers/CallNotificationController.java | 8 ++++---- .../main/res/layout/controller_call_notification.xml | 10 ++++++++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/controllers/CallNotificationController.java b/app/src/main/java/com/nextcloud/talk/controllers/CallNotificationController.java index e4decdcd3..c6e941283 100644 --- a/app/src/main/java/com/nextcloud/talk/controllers/CallNotificationController.java +++ b/app/src/main/java/com/nextcloud/talk/controllers/CallNotificationController.java @@ -128,8 +128,8 @@ public class CallNotificationController extends BaseController { @BindView(R.id.callAnswerCameraView) MagicFlipView callAnswerCameraView; - @BindView(R.id.constraintLayout) - ConstraintLayout constraintLayout; + @BindView(R.id.backgroundImageView) + ImageView backgroundImageView; @BindView(R.id.incomingTextRelativeLayout) RelativeLayout incomingTextRelativeLayout; @@ -450,7 +450,7 @@ public class CallNotificationController extends BaseController { if (getResources() != null) { incomingTextRelativeLayout.setBackground(getResources().getDrawable(R.drawable .incoming_gradient)); - constraintLayout.setBackground(new BitmapDrawable(resource)); + backgroundImageView.setImageDrawable(new BitmapDrawable(resource)); } } else if (AvatarStatusCodeHolder.getInstance().getStatusCode() == 201) { Palette palette = Palette.from(resource).generate(); @@ -464,7 +464,7 @@ public class CallNotificationController extends BaseController { color = Color.HSVToColor(hsv); } - constraintLayout.setBackgroundColor(color); + backgroundImageView.setBackgroundColor(color); } } } diff --git a/app/src/main/res/layout/controller_call_notification.xml b/app/src/main/res/layout/controller_call_notification.xml index 53445c468..6364f4946 100644 --- a/app/src/main/res/layout/controller_call_notification.xml +++ b/app/src/main/res/layout/controller_call_notification.xml @@ -22,8 +22,14 @@ xmlns:tools="http://schemas.android.com/tools" android:id="@+id/constraintLayout" android:layout_width="match_parent" - android:layout_height="match_parent" - android:background="@color/grey950"> + android:layout_height="match_parent"> + +