Use "all_downloads" instead of "my_downloads".
am: 1547194418
Change-Id: I6dabba1f82ef1989eb2a52c3c493127a174ff315
This commit is contained in:
@ -1045,7 +1045,7 @@ public class DownloadManager {
|
|||||||
destination == Downloads.Impl.DESTINATION_CACHE_PARTITION_NOROAMING ||
|
destination == Downloads.Impl.DESTINATION_CACHE_PARTITION_NOROAMING ||
|
||||||
destination == Downloads.Impl.DESTINATION_CACHE_PARTITION_PURGEABLE) {
|
destination == Downloads.Impl.DESTINATION_CACHE_PARTITION_PURGEABLE) {
|
||||||
// return private uri
|
// return private uri
|
||||||
return ContentUris.withAppendedId(Downloads.Impl.CONTENT_URI, id);
|
return ContentUris.withAppendedId(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, id);
|
||||||
} else {
|
} else {
|
||||||
// return public uri
|
// return public uri
|
||||||
String path = cursor.getString(
|
String path = cursor.getString(
|
||||||
@ -1248,7 +1248,7 @@ public class DownloadManager {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public Uri getDownloadUri(long id) {
|
public Uri getDownloadUri(long id) {
|
||||||
return ContentUris.withAppendedId(mBaseUri, id);
|
return ContentUris.withAppendedId(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1329,7 +1329,7 @@ public class DownloadManager {
|
|||||||
|
|
||||||
// return content URI for cache download
|
// return content URI for cache download
|
||||||
long downloadId = getLong(getColumnIndex(Downloads.Impl._ID));
|
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) {
|
private long getReason(int status) {
|
||||||
|
Reference in New Issue
Block a user