diff options
author | 2016-10-10 23:40:21 +0000 | |
---|---|---|
committer | 2016-10-10 23:40:21 +0000 | |
commit | 46e2afec48e44d2d24f97fd49d3042f8869040e6 (patch) | |
tree | a2e4ed2fd02b068ffa932a1b24d5e761ba0ae508 | |
parent | 7ce38313819ee2497b8eb4317e41fe7cdd379c69 (diff) | |
parent | 6f5f03b8c127daa286453f3867fae3cdef0493a2 (diff) |
Set MIME type when building BROWSE intents. am: 42a4aaab44 am: ac184d3c46
am: 6f5f03b8c1
Change-Id: Iab359d3b375db98986adf9314b6bec7530326381
-rw-r--r-- | core/java/android/os/storage/VolumeInfo.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/os/storage/VolumeInfo.java b/core/java/android/os/storage/VolumeInfo.java index 7399b7bfef2e..e399be0095bc 100644 --- a/core/java/android/os/storage/VolumeInfo.java +++ b/core/java/android/os/storage/VolumeInfo.java @@ -437,7 +437,7 @@ public class VolumeInfo implements Parcelable { final Intent intent = new Intent(DocumentsContract.ACTION_BROWSE); intent.addCategory(Intent.CATEGORY_DEFAULT); - intent.setData(uri); + intent.setDataAndType(uri, DocumentsContract.Root.MIME_TYPE_ITEM); // note that docsui treats this as *force* show advanced. So sending // false permits advanced to be shown based on user preferences. |