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

Commit 5cc9544b authored by Garfield Tan's avatar Garfield Tan Committed by android-build-merger
Browse files

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

am: 9af56178

Change-Id: I854704bd3a94c2ff42eebb9a990174fcc5df7c90
parents 3fb551a9 9af56178
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};
            }
        }
    }