AmazeFileManager
AmazeFileManager copied to clipboard
notify the user when renaming to the same name
Description
Added a condition to check if old name and new name of the file are same. Started renaming code only if the names are different.
Issue tracker
Fixes #4340
Automatic tests
- [ ] Added test cases
Manual tests
- [X] Done
- Device: Samsung S23 Ultra
- OS: 12
Build tasks success
Successfully running following tasks on local:
- [X]
./gradlew assembledebug - [X]
./gradlew spotlessCheck
What about we toast a message saying "Your new name is same as old name. Rename isn't done". Or the best thing we can do is, we can disable save button if old and new names are same.
Please let me know what you have in mind.
I added a message to notify that no changes are made as new name matches the old name.
Please let me know if you are thinking the same.