Merge "Set MIME type when building BROWSE intents." into nyc-mr1-dev

This commit is contained in:
TreeHugger Robot
2016-10-10 23:21:32 +00:00
committed by Android (Google) Code Review

View File

@@ -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.