Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ada451e4 authored by Diksha Gohlyan's avatar Diksha Gohlyan Committed by Automerger Merge Worker
Browse files

Merge "Check Read permissions when getDocumentMetadata" into pi-dev am: 4371baaf

Change-Id: Ib242d6ed7ff376a71f85a03aa06f2c0453638310
parents 91e6b19c 4371baaf
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -1260,6 +1260,8 @@ public abstract class DocumentsProvider extends ContentProvider {


            out.putParcelable(DocumentsContract.EXTRA_RESULT, path);
            out.putParcelable(DocumentsContract.EXTRA_RESULT, path);
        } else if (METHOD_GET_DOCUMENT_METADATA.equals(method)) {
        } else if (METHOD_GET_DOCUMENT_METADATA.equals(method)) {
            enforceReadPermissionInner(documentUri, getCallingPackage(),
                    getCallingAttributionTag(), null);
            return getDocumentMetadata(documentId);
            return getDocumentMetadata(documentId);
        } else {
        } else {
            throw new UnsupportedOperationException("Method not supported " + method);
            throw new UnsupportedOperationException("Method not supported " + method);