Skip to content

Commit d43c9b9

Browse files
committed
Add condition to set source text color
1 parent bd6705d commit d43c9b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/source/SourceViewEditText.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class SourceViewEditText : EditText, TextWatcher {
5050

5151
setBackgroundColor(values.getColor(R.styleable.SourceViewEditText_codeBackgroundColor, ContextCompat.getColor(context, android.R.color.transparent)))
5252

53-
if (!values.hasValue(R.styleable.SourceViewEditText_codeDialog)) {
53+
if (!values.hasValue(R.styleable.SourceViewEditText_codeDialog) && values.getBoolean(R.styleable.SourceViewEditText_codeDialog, false)) {
5454
setTextColor(values.getColor(R.styleable.SourceViewEditText_codeTextColor, android.R.attr.textColorPrimary))
5555
}
5656

0 commit comments

Comments
 (0)