diff options
| author | 2024-09-30 09:18:30 +0000 | |
|---|---|---|
| committer | 2024-09-30 09:18:30 +0000 | |
| commit | 27a0aa548ce5b0c2880812e0f9bb3318b33f1b41 (patch) | |
| tree | 44a28a4ffb4f22ebcb35fc1cfaec808c890018c6 | |
| parent | 5d15309354481bd7c8923b512291bf2d68f3cb8d (diff) | |
| parent | 93ce895530cd0917865d1ebc607e32cc1284685b (diff) | |
Merge "Update documentation for non-visible downloads." into main
| -rw-r--r-- | core/java/android/app/DownloadManager.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/java/android/app/DownloadManager.java b/core/java/android/app/DownloadManager.java index b781ce50c4db..f21c3e8d44d6 100644 --- a/core/java/android/app/DownloadManager.java +++ b/core/java/android/app/DownloadManager.java @@ -493,6 +493,9 @@ public class DownloadManager { * {@link Environment#getExternalStoragePublicDirectory(String)} with * {@link Environment#DIRECTORY_DOWNLOADS}). * + * All non-visible downloads that are not modified in the last 7 days will be deleted during + * idle runs. + * * @param uri a file {@link Uri} indicating the destination for the downloaded file. * @return this object */ @@ -796,7 +799,9 @@ public class DownloadManager { * public Downloads directory (as returned by * {@link Environment#getExternalStoragePublicDirectory(String)} with * {@link Environment#DIRECTORY_DOWNLOADS}) will be visible in system's Downloads UI - * and the rest will not be visible. + * and the rest will not be visible. All non-visible downloads that are not modified + * in the last 7 days will be deleted during idle runs. + * * (e.g. {@link Context#getExternalFilesDir(String)}) will not be visible. */ @Deprecated |