From fd2e571077e0c02b454d6adde2dd2829abc0bbd0 Mon Sep 17 00:00:00 2001 From: Sudheer Shanka Date: Mon, 14 Jan 2019 17:26:32 -0800 Subject: Update DownloadManager.addCompletedDownload javadoc. Starting from Q, downloads added using DownloadManager.addCompletedDownload are by default going to be added to MediaProvider regardless of isMediaScannerScannable argument specified by clients. Update the javadoc to reflect this. Bug: 120876251 Test: n/a Change-Id: Ie091703d801bb9cecc9574a122e13a242f4cca95 --- core/java/android/app/DownloadManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/java/android/app/DownloadManager.java b/core/java/android/app/DownloadManager.java index 1622c06b0a34..853b45e0a80d 100644 --- a/core/java/android/app/DownloadManager.java +++ b/core/java/android/app/DownloadManager.java @@ -1324,7 +1324,8 @@ public class DownloadManager { * @param description the description that would appear for this file in Downloads App. * @param isMediaScannerScannable true if the file is to be scanned by MediaScanner. Files * scanned by MediaScanner appear in the applications used to view media (for example, - * Gallery app). + * Gallery app). Starting from {@link android.os.Build.VERSION_CODES#Q}, this argument is + * ignored and the file is always scanned by MediaScanner. * @param mimeType mimetype of the file. * @param path absolute pathname to the file. The file should be world-readable, so that it can * be managed by the Downloads App and any other app that is used to read it (for example, @@ -1353,7 +1354,8 @@ public class DownloadManager { * @param description the description that would appear for this file in Downloads App. * @param isMediaScannerScannable true if the file is to be scanned by MediaScanner. Files * scanned by MediaScanner appear in the applications used to view media (for example, - * Gallery app). + * Gallery app). Starting from {@link android.os.Build.VERSION_CODES#Q}, this argument is + * ignored and the file is always scanned by MediaScanner. * @param mimeType mimetype of the file. * @param path absolute pathname to the file. The file should be world-readable, so that it can * be managed by the Downloads App and any other app that is used to read it (for example, -- cgit v1.2.3-59-g8ed1b