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

Commit 9064d728 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Grant Permanent Write Uri Permission" into main

parents 9080e688 77b192fb
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -81,6 +81,12 @@ public class ExportProcessor extends ProcessorBase {
        mExportRequest = exportRequest;
        mJobId = jobId;
        mCallingActivity = callingActivity;
        try {
            mResolver.takePersistableUriPermission(exportRequest.destUri,
                    Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
        } catch (SecurityException e) {
            Log.w(LOG_TAG, "SecurityException error", e);
        }
    }

    @Override