summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2013-09-27 17:08:13 -0700
committerJeff Sharkey <jsharkey@android.com>2013-09-27 17:08:13 -0700
commit3d1eb366ef744a8790d89535a585bb50bcc7c113 (patch)
tree84b01408d1af8384096f63630a18a911271511fa
parentba91f541fc210c817e0a307c4d7c65b586d4e547 (diff)
downloadandroid_packages_providers_DownloadProvider-3d1eb366ef744a8790d89535a585bb50bcc7c113.zip
android_packages_providers_DownloadProvider-3d1eb366ef744a8790d89535a585bb50bcc7c113.tar.gz
android_packages_providers_DownloadProvider-3d1eb366ef744a8790d89535a585bb50bcc7c113.tar.bz2
Follow API changes.
Bug: 10964412 Change-Id: Ia452bd056b6e01aace33acc5f1aa741af4d77c5f
-rw-r--r--src/com/android/providers/downloads/DownloadStorageProvider.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/android/providers/downloads/DownloadStorageProvider.java b/src/com/android/providers/downloads/DownloadStorageProvider.java
index 1b7b691..622633a 100644
--- a/src/com/android/providers/downloads/DownloadStorageProvider.java
+++ b/src/com/android/providers/downloads/DownloadStorageProvider.java
@@ -52,9 +52,8 @@ public class DownloadStorageProvider extends DocumentsProvider {
private static final String DOC_ID_ROOT = Constants.STORAGE_ROOT_ID;
private static final String[] DEFAULT_ROOT_PROJECTION = new String[] {
- Root.COLUMN_ROOT_ID, Root.COLUMN_ROOT_TYPE, Root.COLUMN_FLAGS, Root.COLUMN_ICON,
- Root.COLUMN_TITLE, Root.COLUMN_SUMMARY, Root.COLUMN_DOCUMENT_ID,
- Root.COLUMN_AVAILABLE_BYTES,
+ Root.COLUMN_ROOT_ID, Root.COLUMN_FLAGS, Root.COLUMN_ICON,
+ Root.COLUMN_TITLE, Root.COLUMN_DOCUMENT_ID,
};
private static final String[] DEFAULT_DOCUMENT_PROJECTION = new String[] {
@@ -94,7 +93,6 @@ public class DownloadStorageProvider extends DocumentsProvider {
final MatrixCursor result = new MatrixCursor(resolveRootProjection(projection));
final RowBuilder row = result.newRow();
row.add(Root.COLUMN_ROOT_ID, DOC_ID_ROOT);
- row.add(Root.COLUMN_ROOT_TYPE, Root.ROOT_TYPE_SHORTCUT);
row.add(Root.COLUMN_FLAGS,
Root.FLAG_LOCAL_ONLY | Root.FLAG_SUPPORTS_RECENTS | Root.FLAG_SUPPORTS_CREATE);
row.add(Root.COLUMN_ICON, R.mipmap.ic_launcher_download);