Request access to the filename column.
Jeff Sharkey [Thu, 7 Jan 2016 16:59:39 +0000 (09:59 -0700)]
Otherwise it would throw at us because it's deprecated for
third-party apps.

Bug: 26438975
Change-Id: Ifd8f0b61ce475a009ef68ef4cb29f5f3780ced70

src/com/android/providers/downloads/DownloadStorageProvider.java

index c8d942c..a36f0d8 100644 (file)
@@ -72,6 +72,7 @@ public class DownloadStorageProvider extends DocumentsProvider {
     public boolean onCreate() {
         mDm = (DownloadManager) getContext().getSystemService(Context.DOWNLOAD_SERVICE);
         mDm.setAccessAllDownloads(true);
+        mDm.setAccessFilename(true);
         mArchiveHelper = new DocumentArchiveHelper(this, ':');
         return true;
     }