fixed issues #4395 & #4343 #4423

Merged
satvik2131 merged 2 commits from master into master 2023-02-11 21:49:45 +00:00
2 changed files with 3 additions and 2 deletions

View file

@ -30,4 +30,4 @@
android:padding="@dimen/margin_half"
android:src="@drawable/ic_close"
app:tint="@color/base_red" />
</LinearLayout>
</LinearLayout>

View file

@ -332,7 +332,8 @@ public final class UiUtils
public static void setInputError(@NonNull TextInputLayout layout, @StringRes int error)
{
layout.setError(error == 0 ? null : layout.getContext().getString(error));
layout.getEditText().setError(error == 0 ? null : layout.getContext().getString(error));
layout.getEditText().setTextColor(error == 0 ? ThemeUtils.getColor(layout.getContext(), android.R.attr.textColorPrimary)
: layout.getContext().getResources().getColor(R.color.base_red));
}