mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-22 21:19:31 +01:00
parent
f48a441d98
commit
79bdb7d640
@ -128,8 +128,8 @@ public class CallNotificationController extends BaseController {
|
|||||||
@BindView(R.id.callAnswerCameraView)
|
@BindView(R.id.callAnswerCameraView)
|
||||||
MagicFlipView callAnswerCameraView;
|
MagicFlipView callAnswerCameraView;
|
||||||
|
|
||||||
@BindView(R.id.constraintLayout)
|
@BindView(R.id.backgroundImageView)
|
||||||
ConstraintLayout constraintLayout;
|
ImageView backgroundImageView;
|
||||||
|
|
||||||
@BindView(R.id.incomingTextRelativeLayout)
|
@BindView(R.id.incomingTextRelativeLayout)
|
||||||
RelativeLayout incomingTextRelativeLayout;
|
RelativeLayout incomingTextRelativeLayout;
|
||||||
@ -450,7 +450,7 @@ public class CallNotificationController extends BaseController {
|
|||||||
if (getResources() != null) {
|
if (getResources() != null) {
|
||||||
incomingTextRelativeLayout.setBackground(getResources().getDrawable(R.drawable
|
incomingTextRelativeLayout.setBackground(getResources().getDrawable(R.drawable
|
||||||
.incoming_gradient));
|
.incoming_gradient));
|
||||||
constraintLayout.setBackground(new BitmapDrawable(resource));
|
backgroundImageView.setImageDrawable(new BitmapDrawable(resource));
|
||||||
}
|
}
|
||||||
} else if (AvatarStatusCodeHolder.getInstance().getStatusCode() == 201) {
|
} else if (AvatarStatusCodeHolder.getInstance().getStatusCode() == 201) {
|
||||||
Palette palette = Palette.from(resource).generate();
|
Palette palette = Palette.from(resource).generate();
|
||||||
@ -464,7 +464,7 @@ public class CallNotificationController extends BaseController {
|
|||||||
color = Color.HSVToColor(hsv);
|
color = Color.HSVToColor(hsv);
|
||||||
}
|
}
|
||||||
|
|
||||||
constraintLayout.setBackgroundColor(color);
|
backgroundImageView.setBackgroundColor(color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,8 +22,14 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:id="@+id/constraintLayout"
|
android:id="@+id/constraintLayout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent">
|
||||||
android:background="@color/grey950">
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:id="@+id/backgroundImageView"
|
||||||
|
android:src="@color/grey950"
|
||||||
|
android:scaleType="centerCrop"/>
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/incomingTextRelativeLayout"
|
android:id="@+id/incomingTextRelativeLayout"
|
||||||
|
Loading…
Reference in New Issue
Block a user