mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +03:00
remove deprecated style definition and use new theming method
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
cd341063fb
commit
9868245fdd
3 changed files with 2 additions and 3 deletions
|
@ -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());
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue