Mutate Drawables we tint

Fixes #6575
// FREEBIE
pull/1/head
Moxie Marlinspike 7 years ago
parent 9bf198bb81
commit 31a549449b

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

Loading…
Cancel
Save