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

Commit 9211b7cb authored by Takamasa Kuramitsu's avatar Takamasa Kuramitsu Committed by android-build-merger
Browse files

Merge "Fix duplicate permission info on Adoptable storage" am: b0c6dc30 am: 51d9e4bb

am: 978e6981

Change-Id: I94f1a69ebfd5b13942fc0fc72b91ac45dd3433a0
parents d355ca45 978e6981
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -123,8 +123,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);
@@ -179,7 +180,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);