Incorrect feedback message 'Password doesn't match' appears after entering only the first password field
Describe the bug Incorrect feedback message 'Password doesn't match' appears after entering only the first password field.
To Reproduce Steps to reproduce the behavior:
- Click the 3 Vertical Dots icon next to a file
- Select 'Encrypt'
- Enter a password in the first password field (e.g., '123')
Expected behavior The feedback message 'Password doesn't match' should appear when the two password fields have different inputs or after text has been entered in the second password field.
Screen Recording
https://github.com/user-attachments/assets/6f60ff14-2d0a-46e1-900a-5596cebfcb2b
Smartphone (please complete the following information):
- Device: [Google Pixel 5]
- OS: [Android 14]
- Rooted: [No]
- Version: [v3.10]
Hi. The cause of the error is that the password validaion logic runs for both password fields at the same time. When entering the first password, the second password field is empty, which causes the 'passwords do not match' error. I fixed the simple bug that created this issue and submitted a PR request.