diff --git a/src/org/thoughtcrime/securesms/components/QuoteView.java b/src/org/thoughtcrime/securesms/components/QuoteView.java index 2354b88959..112f522ce8 100644 --- a/src/org/thoughtcrime/securesms/components/QuoteView.java +++ b/src/org/thoughtcrime/securesms/components/QuoteView.java @@ -6,9 +6,6 @@ import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Color; import android.os.Build; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import androidx.annotation.RequiresApi; import android.text.TextUtils; import android.util.AttributeSet; import android.view.View; @@ -17,11 +14,16 @@ import android.widget.FrameLayout; import android.widget.ImageView; import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; + import com.annimon.stream.Stream; import com.bumptech.glide.load.engine.DiskCacheStrategy; import org.thoughtcrime.securesms.attachments.Attachment; import org.thoughtcrime.securesms.database.DatabaseFactory; +import org.thoughtcrime.securesms.loki.utilities.UiModeUtilities; import org.thoughtcrime.securesms.mms.DecryptableStreamUriLoader.DecryptableUri; import org.thoughtcrime.securesms.mms.GlideRequests; import org.thoughtcrime.securesms.mms.Slide; @@ -209,7 +211,8 @@ public class QuoteView extends FrameLayout implements RecipientModifiedListener authorView.setText(isOwnNumber ? getContext().getString(R.string.QuoteView_you) : quoteeDisplayName); // We use the raw color resource because Android 4.x was struggling with tints here - quoteBarView.setImageResource(R.color.accent); + int colorID = UiModeUtilities.isDayUiMode(getContext()) ? R.color.black : R.color.accent; + quoteBarView.setImageResource(colorID); mainView.setBackgroundColor(ThemeUtil.getThemedColor(getContext(), outgoing ? R.attr.message_received_background_color : R.attr.message_sent_background_color)); }