Adjust quote view colors.

This commit is contained in:
Cody Henthorne
2022-04-06 14:54:53 -04:00
parent ce8dafd33d
commit 3088d7f182
3 changed files with 15 additions and 3 deletions

View File

@@ -261,7 +261,17 @@ public class QuoteView extends FrameLayout implements RecipientForeverObserver {
}
quoteBarView.setBackgroundColor(ContextCompat.getColor(getContext(), outgoing || isStoryReply() ? R.color.core_white : android.R.color.transparent));
mainView.setBackgroundColor(ContextCompat.getColor(getContext(), preview || (!outgoing && isStoryReply()) ? R.color.quote_preview_background : R.color.quote_view_background));
int mainViewColor;
if (preview) {
mainViewColor = R.color.quote_preview_background;
} else if (!outgoing && isStoryReply()) {
mainViewColor = R.color.quote_incoming_story_background;
} else {
mainViewColor = R.color.quote_view_background;
}
mainView.setBackgroundColor(ContextCompat.getColor(getContext(), mainViewColor));
}
private boolean isStoryReply() {