Skip to content

Commit

Permalink
Fix AudioView tinting on Android 10.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Mar 26, 2020
1 parent a3358e5 commit a73a73e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,10 @@ private void setBubbleState(MessageRecord messageRecord) {

private void setAudioViewTint(MessageRecord messageRecord, Recipient recipient) {
if (messageRecord.isOutgoing()) {
if (DynamicTheme.LIGHT.equals(TextSecurePreferences.getTheme(context))) {
audioViewStub.get().setTint(getContext().getResources().getColor(R.color.core_grey_60), defaultBubbleColor);
} else {
if (DynamicTheme.isDarkTheme(context)) {
audioViewStub.get().setTint(Color.WHITE, defaultBubbleColor);
} else {
audioViewStub.get().setTint(getContext().getResources().getColor(R.color.core_grey_60), defaultBubbleColor);
}
} else {
audioViewStub.get().setTint(Color.WHITE, recipient.getColor().toConversationColor(context));
Expand Down

0 comments on commit a73a73e

Please sign in to comment.