Closed nmatpt closed 5 years ago
In Android 8 the DocumentsContract.getDocumentId no longer returns a numeric identifier for the Downloads folder so the Long.valueOf throws an exception. This is a quick fix for that, it was tested in Android 8.0 and Android P.
DocumentsContract.getDocumentId
Long.valueOf
I have just test it and it works!
In Android 8 the
DocumentsContract.getDocumentId
no longer returns a numeric identifier for the Downloads folder so theLong.valueOf
throws an exception. This is a quick fix for that, it was tested in Android 8.0 and Android P.