From 8daf76010768e08a457361c70c0d0ed57dd3611e Mon Sep 17 00:00:00 2001 From: Liam P <89549210+liam-p-23@users.noreply.github.com> Date: Tue, 16 Nov 2021 19:08:36 -0500 Subject: [PATCH] Updated input warning message functionality Signed-off-by: Liam P <89549210+liam-p-23@users.noreply.github.com> --- .../owncloud/android/ui/dialog/RenameFileDialogFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/owncloud/android/ui/dialog/RenameFileDialogFragment.java b/src/main/java/com/owncloud/android/ui/dialog/RenameFileDialogFragment.java index 8fb9c2218c..62478f4601 100644 --- a/src/main/java/com/owncloud/android/ui/dialog/RenameFileDialogFragment.java +++ b/src/main/java/com/owncloud/android/ui/dialog/RenameFileDialogFragment.java @@ -114,8 +114,9 @@ public class RenameFileDialogFragment binding.userInput.setSelection(0, selectionEnd); binding.userInput.requestFocus(); - // Add TextChangedListener to the user input EditText and set the proper warning message + // Set the proper input warning message binding.inputWarningMessage.setText(R.string.hidden_file_name_warning); + // Add TextChangedListener to handle showing/hiding the input warning message binding.userInput.addTextChangedListener(new TextWatcher() { @Override public void afterTextChanged(Editable s) {