summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Lin <linben@google.com>2017-05-25 10:43:53 -0700
committerBen Lin <linben@google.com>2017-05-25 18:02:43 +0000
commit6ce29a9908d271bdfe8fedce3f43629c65bb239c (patch)
tree416f264e984f6d348bf034aa3eab111af2a943e9
parent4a6325baef957873ab8c32b2e9f47cddb6f4863d (diff)
downloadandroid_packages_providers_DownloadProvider-6ce29a9908d271bdfe8fedce3f43629c65bb239c.zip
android_packages_providers_DownloadProvider-6ce29a9908d271bdfe8fedce3f43629c65bb239c.tar.gz
android_packages_providers_DownloadProvider-6ce29a9908d271bdfe8fedce3f43629c65bb239c.tar.bz2
Add FLAG_SUPPORTS_IS_CHILD to DownloadStorageProvider.
Test: DocumentsUI shows Downloads when invoked via ACTION_OPEN_TREE. Bug: 62087271 Change-Id: Ia48d912d6920b7dfcb280aadf212d34d109f31af
-rw-r--r--src/com/android/providers/downloads/DownloadStorageProvider.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/providers/downloads/DownloadStorageProvider.java b/src/com/android/providers/downloads/DownloadStorageProvider.java
index 08a3f67..bbcb06d 100644
--- a/src/com/android/providers/downloads/DownloadStorageProvider.java
+++ b/src/com/android/providers/downloads/DownloadStorageProvider.java
@@ -122,7 +122,8 @@ public class DownloadStorageProvider extends FileSystemProvider {
final RowBuilder row = result.newRow();
row.add(Root.COLUMN_ROOT_ID, DOC_ID_ROOT);
row.add(Root.COLUMN_FLAGS, Root.FLAG_LOCAL_ONLY | Root.FLAG_SUPPORTS_RECENTS
- | Root.FLAG_SUPPORTS_CREATE | Root.FLAG_SUPPORTS_SEARCH);
+ | Root.FLAG_SUPPORTS_CREATE | Root.FLAG_SUPPORTS_SEARCH
+ | Root.FLAG_SUPPORTS_IS_CHILD);
row.add(Root.COLUMN_ICON, R.mipmap.ic_launcher_download);
row.add(Root.COLUMN_TITLE, getContext().getString(R.string.root_downloads));
row.add(Root.COLUMN_DOCUMENT_ID, DOC_ID_ROOT);