Merge "Fix CTS test fail for isTreeUri check in findDocumentPath method"

This commit is contained in:
Ivan Chiang
2019-01-23 02:54:33 +00:00
committed by Android (Google) Code Review

View File

@@ -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;
@@ -1607,8 +1606,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);