diff options
| author | Sudheer Shanka <sudheersai@google.com> | 2019-04-28 22:59:45 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-04-28 22:59:45 +0000 |
| commit | 464762e5a2479d1679bfc4927f0384e76cb8d9e8 (patch) | |
| tree | eca0a106ad0eee2f9f4d7509d20451adbd8130d8 /core/java/android/app/DownloadManager.java | |
| parent | a87fd73922011adc7d0e6d840b419504655e0134 (diff) | |
| parent | 5b2e695cd0d0d162ed375863bfd9baf9adfd7dea (diff) | |
Merge "Deprecate DownloadManager.allowScanningByMediaScanner/setVisibleInDownloadsUi" into qt-dev
Diffstat (limited to 'core/java/android/app/DownloadManager.java')
| -rw-r--r-- | core/java/android/app/DownloadManager.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/java/android/app/DownloadManager.java b/core/java/android/app/DownloadManager.java index 6d035ddf70cb..be281c2a3efe 100644 --- a/core/java/android/app/DownloadManager.java +++ b/core/java/android/app/DownloadManager.java @@ -592,7 +592,15 @@ public class DownloadManager { /** * If the file to be downloaded is to be scanned by MediaScanner, this method * should be called before {@link DownloadManager#enqueue(Request)} is called. + * + * @deprecated Starting in Q, this value is ignored. Files downloaded to + * public Downloads directory (as returned by + * {@link Environment#getExternalStoragePublicDirectory(String)} with + * {@link Environment#DIRECTORY_DOWNLOADS}) will be scanned by MediaScanner + * and files downloaded to directories owned by applications + * (e.g. {@link Context#getExternalFilesDir(String)}) will not be scanned. */ + @Deprecated public void allowScanningByMediaScanner() { mScannable = true; } @@ -774,7 +782,15 @@ public class DownloadManager { * default. * @param isVisible whether to display this download in the Downloads UI * @return this object + * + * @deprecated Starting in Q, this value is ignored. Files downloaded to + * public Downloads directory (as returned by + * {@link Environment#getExternalStoragePublicDirectory(String)} with + * {@link Environment#DIRECTORY_DOWNLOADS}) will be visible in system's Downloads UI + * and files downloaded to directories owned by applications + * (e.g. {@link Context#getExternalFilesDir(String)}) will not be visible. */ + @Deprecated public Request setVisibleInDownloadsUi(boolean isVisible) { mIsVisibleInDownloadsUi = isVisible; return this; |
