From b63f5de879dd4091d35af7bf4c5179ee4c6d2471 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 2 Jul 2021 08:05:57 +0200 Subject: [PATCH] Use control color for auto complete action button --- .../java/eu/faircode/email/TextViewAutoCompleteAction.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/TextViewAutoCompleteAction.java b/app/src/main/java/eu/faircode/email/TextViewAutoCompleteAction.java index d33580bfba..c432e31a51 100644 --- a/app/src/main/java/eu/faircode/email/TextViewAutoCompleteAction.java +++ b/app/src/main/java/eu/faircode/email/TextViewAutoCompleteAction.java @@ -59,7 +59,8 @@ public class TextViewAutoCompleteAction extends AppCompatAutoCompleteTextView { TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.TextViewAutoCompleteAction, 0, 0); drawable = a.getDrawable(R.styleable.TextViewAutoCompleteAction_end_drawable); } - drawable.setTint(getCurrentTextColor()); + int colorControlNormal = Helper.resolveColor(context, R.attr.colorControlNormal); + drawable.setTint(colorControlNormal); drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight()); setOnTouchListener(new OnTouchListener() {