update folders on copy and move operations #11
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was originally created here: SimpleMobileTools/Simple-Gallery#3003
When you are sorting media files into folders by moving from one folder into several others (e.g. by category) currently the folders are only updated when you return to the main activity page.
That means if you sort your folders by date modified and start to move your files you will not update the order of your folders until you move back to the main page and return to the folder where you are sorting from.
This PR forces an update of source and target folder of copy/move operations so you will see the updated order of your folders immediately.
Steps to reproduce:
Expected behaviour:
If you now move/copy another file without returning to the main page you should see the last folder being moved up to the top (as it was just modified and it should be the first)
Actual behaviour:
The folder will stay the last folder until you return to the main page