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

Commit c60c80a7 authored by Ivan Chiang's avatar Ivan Chiang
Browse files

Fix CTS test fail for isTreeUri check in findDocumentPath method

Remove the isTreeUri check

Test: atest DocumentsTest
Change-Id: I19108a3dfac4963e8c700bb15273ce3051cabae8
Fix: 121342931
parent 4260098e
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@

package android.provider;

import static com.android.internal.util.Preconditions.checkArgument;
import static com.android.internal.util.Preconditions.checkCollectionElementsNotNull;
import static com.android.internal.util.Preconditions.checkCollectionNotEmpty;

@@ -1595,8 +1594,6 @@ public final class DocumentsContract {
     */
    public static Path findDocumentPath(ContentInterface content, Uri treeUri)
            throws FileNotFoundException {
        checkArgument(isTreeUri(treeUri), treeUri + " is not a tree uri.");

        try {
            final Bundle in = new Bundle();
            in.putParcelable(DocumentsContract.EXTRA_URI, treeUri);