diff options
| author | Jeff Sharkey <jsharkey@android.com> | 2016-09-17 00:46:04 +0000 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2016-09-17 00:46:04 +0000 |
| commit | b72e835129fd39a2d5518f77a2c72d8e62d50ff1 (patch) | |
| tree | a36367ca0d5cf79da552e316904e9fc5f6c26c1d /core/java/android/app/DownloadManager.java | |
| parent | daaa4be3c8e19fe89ea77153c1783b73ff1b7d40 (diff) | |
| parent | f7caea844fbe973e07477ad47b4ba55e7c9f3398 (diff) | |
Merge commit '0a9d537f623b2c11dce707fb9b91fea016fd0e9f' into manual_merge_0a9d537 am: df42d732f8 am: afcd1135c3 am: fc1c0f9dff am: 33ada2e927 am: db901ee296 am: bd5d0049d7
am: f7caea844f
Change-Id: Ifa9167a9a69240712a59b90839a32605cfdd7037
Diffstat (limited to 'core/java/android/app/DownloadManager.java')
| -rw-r--r-- | core/java/android/app/DownloadManager.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/app/DownloadManager.java b/core/java/android/app/DownloadManager.java index 03fcf47e9a31..462f66f38def 100644 --- a/core/java/android/app/DownloadManager.java +++ b/core/java/android/app/DownloadManager.java @@ -1112,7 +1112,7 @@ public class DownloadManager { if (cursor.moveToFirst()) { int status = cursor.getInt(cursor.getColumnIndexOrThrow(COLUMN_STATUS)); if (DownloadManager.STATUS_SUCCESSFUL == status) { - return ContentUris.withAppendedId(Downloads.Impl.CONTENT_URI, id); + return ContentUris.withAppendedId(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, id); } } } finally { @@ -1448,7 +1448,7 @@ public class DownloadManager { * @hide */ public Uri getDownloadUri(long id) { - return ContentUris.withAppendedId(mBaseUri, id); + return ContentUris.withAppendedId(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, id); } /** @@ -1552,7 +1552,7 @@ public class DownloadManager { // return content URI for cache download long downloadId = getLong(getColumnIndex(Downloads.Impl._ID)); - return ContentUris.withAppendedId(mBaseUri, downloadId).toString(); + return ContentUris.withAppendedId(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, downloadId).toString(); } private long getReason(int status) { |
