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

Commit 9af56178 authored by Garfield Tan's avatar Garfield Tan Committed by Android (Google) Code Review
Browse files

Merge "Fix Download file can't be found in setting's recent folder" into arc-apps

parents 979aaa2c 2fc1baa8
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import android.annotation.IntDef;
import android.content.Intent;
import android.os.Parcel;
import android.os.Parcelable;
import android.provider.DocumentsContract;
import android.util.SparseArray;

import com.android.documentsui.services.FileOperationService;
@@ -113,7 +114,12 @@ public class State implements android.os.Parcelable {
            acceptMimes = intent.getStringArrayExtra(Intent.EXTRA_MIME_TYPES);
        } else {
            String glob = intent.getType();
            acceptMimes = new String[] { glob != null ? glob : "*/*" };
            if (glob == null || DocumentsContract.Root.MIME_TYPE_ITEM.equals(glob)) {
                // this means we do not care for the mime type
                acceptMimes = new String[]{"*/*"};
            } else {
                acceptMimes = new String[]{glob};
            }
        }
    }