summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Sudheer Shanka <sudheersai@google.com> 2019-01-14 17:26:32 -0800
committer Sudheer Shanka <sudheersai@google.com> 2019-01-18 14:19:37 -0800
commitfd2e571077e0c02b454d6adde2dd2829abc0bbd0 (patch)
treed5369e37ebf5fdc35753bffe746e9190efab2ce0
parent562e68fb4b3065a8a57d27531be012542e39b51c (diff)
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
-rw-r--r--core/java/android/app/DownloadManager.java6
1 files 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,