AmazeFileManager icon indicating copy to clipboard operation
AmazeFileManager copied to clipboard

notify the user when renaming to the same name

Open yashwanthgajji opened this issue 11 months ago • 2 comments

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

yashwanthgajji avatar Jan 23 '25 04:01 yashwanthgajji

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.

yashwanthgajji avatar Jan 23 '25 20:01 yashwanthgajji

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.

yashwanthgajji avatar Jan 27 '25 01:01 yashwanthgajji