Julian Raufelder f28ec0b413
Fix error when moving folder with local storage if accessed directly
Fixes #420

I have no idea why `DocumentsContract.getTreeDocumentId` don't work. The docs of this method is quiet useless especially because of the typo: "Extract the via Document#COLUMN_DOCUMENT_ID from the given URI". The method returns only the path segment directly after the `tree` section which means the root of the selected location.

The good thing is that it is 100% reproducible and gets fixed by using `DocumentsContract.getDocumentId`. The problem exists since version 1.5.4. What I don't understand is why it worked in 1.5.3 because there the `DocumentsContract.getTreeDocumentId` returns the same garbage, I would understand the problem if it would exists since version 1.5.0 but 1.5.4 is weird. Crazy too is that this happens only with (crypto) folders and not (crypto) files.
2022-03-23 14:02:55 +01:00
..
2020-12-23 12:09:37 +01:00