Mutate Drawables we tint

Fixes #6575
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-04-24 16:37:13 -07:00
parent 9bf198bb81
commit 31a549449b

View File

@ -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),