mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 07:37:29 +00:00
Fix AudioView tinting on Android 10.
This commit is contained in:
@@ -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));
|
||||||
|
Reference in New Issue
Block a user