From: Damyan Ivanov Date: Sun, 3 May 2020 19:21:16 +0000 (+0300) Subject: rename ic_clear_black_24dp.xml to avoid clash with a private SDK resource X-Git-Tag: v0.12.0~10 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=c5e225104863d700224b42df374cb614245945c7;p=mobile-ledger.git rename ic_clear_black_24dp.xml to avoid clash with a private SDK resource --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/AutoCompleteTextViewWithClear.java b/app/src/main/java/net/ktnx/mobileledger/ui/AutoCompleteTextViewWithClear.java index 8b73de1d..78e62d4c 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/AutoCompleteTextViewWithClear.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/AutoCompleteTextViewWithClear.java @@ -57,7 +57,7 @@ public final class AutoCompleteTextViewWithClear extends AppCompatAutoCompleteTe setCompoundDrawablesRelative(null, null, null, null); } private void showClearDrawable() { - setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, R.drawable.ic_clear_black_24dp, 0); + setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, R.drawable.ic_clear_accent_24dp, 0); } @Override protected void onTextChanged(CharSequence text, int start, int lengthBefore, int lengthAfter) { diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/EditTextWithClear.java b/app/src/main/java/net/ktnx/mobileledger/ui/EditTextWithClear.java index 56d132fd..e39f7454 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/EditTextWithClear.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/EditTextWithClear.java @@ -57,7 +57,7 @@ public final class EditTextWithClear extends androidx.appcompat.widget.AppCompat setCompoundDrawablesRelative(null, null, null, null); } private void showClearDrawable() { - setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, R.drawable.ic_clear_black_24dp, 0); + setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, R.drawable.ic_clear_accent_24dp, 0); } @Override protected void onTextChanged(CharSequence text, int start, int lengthBefore, int lengthAfter) { diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/TextViewClearHelper.java b/app/src/main/java/net/ktnx/mobileledger/ui/TextViewClearHelper.java index 3060ebaf..e6e7793b 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/TextViewClearHelper.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/TextViewClearHelper.java @@ -98,7 +98,7 @@ public class TextViewClearHelper { view.setCompoundDrawablesRelative(null, null, null, null); } private void showClearDrawable() { - view.setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, R.drawable.ic_clear_black_24dp, + view.setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, R.drawable.ic_clear_accent_24dp, 0); } public boolean onTouchEvent(EditText view, MotionEvent event) { diff --git a/app/src/main/res/drawable-anydpi-v21/ic_clear_accent_24dp.xml b/app/src/main/res/drawable-anydpi-v21/ic_clear_accent_24dp.xml new file mode 100644 index 00000000..51c798a6 --- /dev/null +++ b/app/src/main/res/drawable-anydpi-v21/ic_clear_accent_24dp.xml @@ -0,0 +1,28 @@ + + + + + diff --git a/app/src/main/res/drawable-anydpi-v21/ic_clear_black_24dp.xml b/app/src/main/res/drawable-anydpi-v21/ic_clear_black_24dp.xml deleted file mode 100644 index 51c798a6..00000000 --- a/app/src/main/res/drawable-anydpi-v21/ic_clear_black_24dp.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - diff --git a/app/src/main/res/layout/nav_profile_list_head.xml b/app/src/main/res/layout/nav_profile_list_head.xml index 97550331..3e1234a3 100644 --- a/app/src/main/res/layout/nav_profile_list_head.xml +++ b/app/src/main/res/layout/nav_profile_list_head.xml @@ -34,7 +34,8 @@ app:layout_constraintEnd_toStartOf="@id/nav_profile_list_head_buttons" app:layout_constraintStart_toEndOf="@id/nav_profiles_label" app:layout_constraintTop_toTopOf="parent" - app:srcCompat="@drawable/ic_add_circle_white_24dp" /> + app:srcCompat="@drawable/ic_add_circle_white_24dp" + android:contentDescription="@string/icon" />