From 9df928e70961507713d985a357e2b2ccee36cee9 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 1 Jul 2019 10:04:02 +0200 Subject: [PATCH] Fix bad background color in dark themes --- .../vector/riotredesign/features/invite/VectorInviteView.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vector/src/main/java/im/vector/riotredesign/features/invite/VectorInviteView.kt b/vector/src/main/java/im/vector/riotredesign/features/invite/VectorInviteView.kt index 7777264e1c..15187a3281 100644 --- a/vector/src/main/java/im/vector/riotredesign/features/invite/VectorInviteView.kt +++ b/vector/src/main/java/im/vector/riotredesign/features/invite/VectorInviteView.kt @@ -17,7 +17,6 @@ package im.vector.riotredesign.features.invite import android.content.Context -import android.graphics.Color import android.util.AttributeSet import android.view.View import androidx.constraintlayout.widget.ConstraintLayout @@ -46,11 +45,10 @@ class VectorInviteView @JvmOverloads constructor(context: Context, attrs: Attrib var callback: Callback? = null init { - if (context is HasScreenInjector){ + if (context is HasScreenInjector) { context.injector().inject(this) } View.inflate(context, R.layout.vector_invite_view, this) - setBackgroundColor(Color.WHITE) inviteRejectView.setOnClickListener { callback?.onRejectInvite() } inviteAcceptView.setOnClickListener { callback?.onAcceptInvite() } }