From 31a549449b8402cf3c360601704b77ce8d9852a4 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Mon, 24 Apr 2017 16:37:13 -0700 Subject: [PATCH] Mutate Drawables we tint Fixes #6575 // FREEBIE --- src/org/thoughtcrime/securesms/components/DocumentView.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/org/thoughtcrime/securesms/components/DocumentView.java b/src/org/thoughtcrime/securesms/components/DocumentView.java index 933823c733..b79ac376a8 100644 --- a/src/org/thoughtcrime/securesms/components/DocumentView.java +++ b/src/org/thoughtcrime/securesms/components/DocumentView.java @@ -65,6 +65,9 @@ public class DocumentView extends FrameLayout { this.documentBackground = findViewById(R.id.document_background); this.document = (TextView) findViewById(R.id.document); + this.document.getBackground().mutate(); + this.documentBackground.getBackground().mutate(); + if (attrs != null) { TypedArray typedArray = context.getTheme().obtainStyledAttributes(attrs, R.styleable.DocumentView, 0, 0); setTint(typedArray.getColor(R.styleable.DocumentView_documentForegroundTintColor, Color.WHITE),