remove deprecated style definition and use new theming method

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2021-02-19 11:34:42 +01:00
parent cd341063fb
commit 9868245fdd
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
3 changed files with 2 additions and 3 deletions

View file

@ -146,7 +146,7 @@ public class ChooseRichDocumentsTemplateDialogFragment extends DialogFragment im
View view = binding.getRoot(); View view = binding.getRoot();
binding.filename.requestFocus(); binding.filename.requestFocus();
ThemeUtils.colorTextInputLayout(binding.filenameContainer, ThemeUtils.primaryColor(getContext())); ThemeUtils.colorTextInput(binding.filenameContainer, binding.filename, ThemeUtils.primaryColor(getContext()));
try { try {
client = clientFactory.create(currentAccount.getUser()); client = clientFactory.create(currentAccount.getUser());

View file

@ -161,7 +161,7 @@ public class ChooseTemplateDialogFragment extends DialogFragment implements View
View view = binding.getRoot(); View view = binding.getRoot();
binding.filename.requestFocus(); binding.filename.requestFocus();
ThemeUtils.colorTextInputLayout(binding.filenameContainer, ThemeUtils.primaryColor(getContext())); ThemeUtils.colorTextInput(binding.filenameContainer, binding.filename, ThemeUtils.primaryColor(getContext()));
binding.filename.setOnKeyListener((v, keyCode, event) -> { binding.filename.setOnKeyListener((v, keyCode, event) -> {
checkEnablingCreateButton(); checkEnablingCreateButton();

View file

@ -47,7 +47,6 @@
<com.google.android.material.textfield.TextInputLayout <com.google.android.material.textfield.TextInputLayout
android:id="@+id/filename_container" android:id="@+id/filename_container"
style="@style/TextInputLayout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/filename_hint" android:hint="@string/filename_hint"