mirror of
https://github.com/nextcloud/android.git
synced 2024-11-25 06:35:48 +03:00
Updated input warning message functionality
Signed-off-by: Liam P <89549210+liam-p-23@users.noreply.github.com>
This commit is contained in:
parent
425966a7b8
commit
8daf760107
1 changed files with 2 additions and 1 deletions
|
@ -114,8 +114,9 @@ public class RenameFileDialogFragment
|
||||||
binding.userInput.setSelection(0, selectionEnd);
|
binding.userInput.setSelection(0, selectionEnd);
|
||||||
binding.userInput.requestFocus();
|
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);
|
binding.inputWarningMessage.setText(R.string.hidden_file_name_warning);
|
||||||
|
// Add TextChangedListener to handle showing/hiding the input warning message
|
||||||
binding.userInput.addTextChangedListener(new TextWatcher() {
|
binding.userInput.addTextChangedListener(new TextWatcher() {
|
||||||
@Override
|
@Override
|
||||||
public void afterTextChanged(Editable s) {
|
public void afterTextChanged(Editable s) {
|
||||||
|
|
Loading…
Reference in a new issue