mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 15:58:34 +00:00
Fix AudioView tinting on Android 10.
This commit is contained in:
parent
a3358e5b21
commit
a73a73e42c
@ -408,10 +408,10 @@ public class ConversationItem extends LinearLayout implements BindableConversati
|
|||||||
|
|
||||||
private void setAudioViewTint(MessageRecord messageRecord, Recipient recipient) {
|
private void setAudioViewTint(MessageRecord messageRecord, Recipient recipient) {
|
||||||
if (messageRecord.isOutgoing()) {
|
if (messageRecord.isOutgoing()) {
|
||||||
if (DynamicTheme.LIGHT.equals(TextSecurePreferences.getTheme(context))) {
|
if (DynamicTheme.isDarkTheme(context)) {
|
||||||
audioViewStub.get().setTint(getContext().getResources().getColor(R.color.core_grey_60), defaultBubbleColor);
|
|
||||||
} else {
|
|
||||||
audioViewStub.get().setTint(Color.WHITE, defaultBubbleColor);
|
audioViewStub.get().setTint(Color.WHITE, defaultBubbleColor);
|
||||||
|
} else {
|
||||||
|
audioViewStub.get().setTint(getContext().getResources().getColor(R.color.core_grey_60), defaultBubbleColor);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
audioViewStub.get().setTint(Color.WHITE, recipient.getColor().toConversationColor(context));
|
audioViewStub.get().setTint(Color.WHITE, recipient.getColor().toConversationColor(context));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user