This can never return true:
FileUtil.writeUriToStorage(..., getCurrentMainFragment().getCurrentPath());
checks:
FileOutputStream output = new FileOutputStream(file, true);
on a folder resulting in the exception:
java.io.FileNotFoundException: [the current directory]: open failed: EISDIR (Is a directory)
that is catched and returns false:
https://github.com/TeamAmaze/AmazeFileManager/blob/3f6c063942579d983a382e0c010fdc0be351df60/app/src/main/java/com/amaze/filemanager/filesystem/FileUtil.java#L643-L656
Known issue, had planned to fix this.
You should post these issues and assign them to yourself so you don't forget.
why reopen them all?
So that they can be closed when the PR is pulled.
Crashed again: in F-Droid I open the installed apps list then Share to
"Save As..."
@ildar what makes you think this specific issue is to blame?
emm, sorry, I may be wrong and it's more like
https://github.com/TeamAmaze/AmazeFileManager/issues/928 (with NPE at
checkNotNull(Preconditions.java:111))