diff options
| author | 2018-12-26 15:52:00 +0800 | |
|---|---|---|
| committer | 2019-01-21 11:26:43 +0800 | |
| commit | c60c80a7f2a441b9e680d948564f02b7c98f3b5c (patch) | |
| tree | e8449d6c80e02d3a80f1540da8f261bc5b83bb9b | |
| parent | 4260098e02c8ea329fc949c1b74c6c974fec8770 (diff) | |
Fix CTS test fail for isTreeUri check in findDocumentPath method
Remove the isTreeUri check
Test: atest DocumentsTest
Change-Id: I19108a3dfac4963e8c700bb15273ce3051cabae8
Fix: 121342931
| -rw-r--r-- | core/java/android/provider/DocumentsContract.java | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/core/java/android/provider/DocumentsContract.java b/core/java/android/provider/DocumentsContract.java index a323ed1a51cb..7b9eaf6aec18 100644 --- a/core/java/android/provider/DocumentsContract.java +++ b/core/java/android/provider/DocumentsContract.java @@ -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); |