Skip to content

Commit f653d36

Browse files
jsharkeyThe Android Automerger
authored andcommitted
Merge commit '0a9d537f623b2c11dce707fb9b91fea016fd0e9f' into manual_merge_0a9d537
Change-Id: Ib1a0bbb34edb61666ac5739f0b0eaadbe4c5fe06
1 parent 4c95059 commit f653d36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/java/android/app/DownloadManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ public Uri getUriForDownloadedFile(long id) {
10301030
if (cursor.moveToFirst()) {
10311031
int status = cursor.getInt(cursor.getColumnIndexOrThrow(COLUMN_STATUS));
10321032
if (DownloadManager.STATUS_SUCCESSFUL == status) {
1033-
return ContentUris.withAppendedId(Downloads.Impl.CONTENT_URI, id);
1033+
return ContentUris.withAppendedId(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, id);
10341034
}
10351035
}
10361036
} finally {
@@ -1227,7 +1227,7 @@ private static void validateArgumentIsNonEmpty(String paramName, String val) {
12271227
* @hide
12281228
*/
12291229
public Uri getDownloadUri(long id) {
1230-
return ContentUris.withAppendedId(mBaseUri, id);
1230+
return ContentUris.withAppendedId(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, id);
12311231
}
12321232

12331233
/**
@@ -1308,7 +1308,7 @@ private String getLocalUri() {
13081308

13091309
// return content URI for cache download
13101310
long downloadId = getLong(getColumnIndex(Downloads.Impl._ID));
1311-
return ContentUris.withAppendedId(mBaseUri, downloadId).toString();
1311+
return ContentUris.withAppendedId(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, downloadId).toString();
13121312
}
13131313

13141314
private long getReason(int status) {

0 commit comments

Comments
 (0)