From 6ed2ee73b33a08469620df321789530ddd8203d4 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 4 Mar 2022 19:17:50 +0100 Subject: [PATCH] Chip: padding --- .../main/java/eu/faircode/email/EditTextMultiAutoComplete.java | 1 - app/src/main/res/xml/chip.xml | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/EditTextMultiAutoComplete.java b/app/src/main/java/eu/faircode/email/EditTextMultiAutoComplete.java index 8b46b2876d..0068156acf 100644 --- a/app/src/main/java/eu/faircode/email/EditTextMultiAutoComplete.java +++ b/app/src/main/java/eu/faircode/email/EditTextMultiAutoComplete.java @@ -351,7 +351,6 @@ public class EditTextMultiAutoComplete extends AppCompatMultiAutoCompleteTextVie } }); } else if (has != 0) { - cd.setTextEndPadding(dp3); cd.setCloseIcon(context.getDrawable(icons[has - 1])); cd.setCloseIconVisible(true); } diff --git a/app/src/main/res/xml/chip.xml b/app/src/main/res/xml/chip.xml index 15f971d015..f164daaecb 100644 --- a/app/src/main/res/xml/chip.xml +++ b/app/src/main/res/xml/chip.xml @@ -3,6 +3,7 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:ellipsize="middle" android:textAppearance="@style/TextAppearance.AppCompat.Small" + app:closeIconStartPadding="3dp" app:closeIconVisible="false" app:textEndPadding="0dp" app:textStartPadding="3dp" />