We check later if canRead, no reason to hardcode about A11+

Stephen Paul Weber created

Change summary

src/main/java/eu/siacs/conversations/persistance/FileBackend.java | 7 
1 file changed, 1 insertion(+), 6 deletions(-)

Detailed changes

src/main/java/eu/siacs/conversations/persistance/FileBackend.java ๐Ÿ”—

@@ -685,12 +685,7 @@ public class FileBackend {
     }
 
     public String getOriginalPath(final Uri uri) {
-        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
-            // On Android 11+ we donโ€™t have access to the original file
-            return null;
-        } else {
-            return FileUtils.getPath(mXmppConnectionService, uri);
-        }
+        return FileUtils.getPath(mXmppConnectionService, uri);
     }
 
     public void copyFileToDocumentFile(Context ctx, File file, DocumentFile df) throws FileCopyException {