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

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

Merge "Fix duplicate permission info on Adoptable storage"

parents 59710528 18ae32d2
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -124,8 +124,9 @@ public class ScopedAccessActivity extends Activity {
        String directoryName =
                getInternalDirectoryName(intent.getStringExtra(EXTRA_DIRECTORY_NAME));
        final StorageVolume volume = (StorageVolume) storageVolume;
        final String uuid = volume.isPrimary() ? null : volume.getUuid();
        if (getScopedAccessPermissionStatus(getApplicationContext(), getCallingPackage(),
                volume.getUuid(), directoryName) == PERMISSION_NEVER_ASK) {
                uuid, directoryName) == PERMISSION_NEVER_ASK) {
            logValidScopedAccessRequest(this, directoryName,
                    SCOPED_DIRECTORY_ACCESS_ALREADY_DENIED);
            setResult(RESULT_CANCELED);
@@ -180,7 +181,7 @@ public class ScopedAccessActivity extends Activity {
                    final Bundle args = new Bundle();
                    args.putString(EXTRA_FILE, file.getAbsolutePath());
                    args.putString(EXTRA_VOLUME_LABEL, volumeLabel);
                    args.putString(EXTRA_VOLUME_UUID, storageVolume.getUuid());
                    args.putString(EXTRA_VOLUME_UUID, isPrimary ? null : storageVolume.getUuid());
                    args.putString(EXTRA_APP_LABEL, appLabel);
                    args.putBoolean(EXTRA_IS_ROOT, isRoot);
                    args.putBoolean(EXTRA_IS_PRIMARY, isPrimary);