summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2016-01-08 09:25:22 -0700
committerThe Android Automerger <android-build@google.com>2016-01-08 12:23:25 -0800
commitd42b36e7f5b1da1ca6daf316ef216e9bb1debbae (patch)
tree7c13d0b99987d8bdcc47ad52dfb10094d7851499
parent28613321367b0c6acf092d315fa9f9f16675b850 (diff)
downloadandroid_packages_providers_DownloadProvider-d42b36e7f5b1da1ca6daf316ef216e9bb1debbae.zip
android_packages_providers_DownloadProvider-d42b36e7f5b1da1ca6daf316ef216e9bb1debbae.tar.gz
android_packages_providers_DownloadProvider-d42b36e7f5b1da1ca6daf316ef216e9bb1debbae.tar.bz2
Opening downloads also needs filename access.
Bug: 26454235 Change-Id: I61d68f694e6460b46a56b111092094a3111c291b
-rw-r--r--src/com/android/providers/downloads/OpenHelper.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/providers/downloads/OpenHelper.java b/src/com/android/providers/downloads/OpenHelper.java
index 4eb319c..4b051be 100644
--- a/src/com/android/providers/downloads/OpenHelper.java
+++ b/src/com/android/providers/downloads/OpenHelper.java
@@ -65,6 +65,7 @@ public class OpenHelper {
final DownloadManager downManager = (DownloadManager) context.getSystemService(
Context.DOWNLOAD_SERVICE);
downManager.setAccessAllDownloads(true);
+ downManager.setAccessFilename(true);
final Cursor cursor = downManager.query(new DownloadManager.Query().setFilterById(id));
try {