Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
packages_providers_DownloadProvider
Commits
8ec8bdeb
Commit
8ec8bdeb
authored
12 years ago
by
Jeff Sharkey
Committed by
Android (Google) Code Review
12 years ago
Browse files
Options
Download
Plain Diff
Merge "Update extras for in-progress download." into jb-mr1.1-dev
parents
d912ebe9
f818eecf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
src/com/android/providers/downloads/Constants.java
src/com/android/providers/downloads/Constants.java
+2
-0
src/com/android/providers/downloads/DownloadReceiver.java
src/com/android/providers/downloads/DownloadReceiver.java
+1
-1
ui/src/com/android/providers/downloads/ui/DownloadList.java
ui/src/com/android/providers/downloads/ui/DownloadList.java
+5
-8
No files found.
src/com/android/providers/downloads/Constants.java
View file @
8ec8bdeb
...
...
@@ -75,6 +75,8 @@ public class Constants {
/** The default extension for binary files if we can't get one at the HTTP level */
public
static
final
String
DEFAULT_DL_BINARY_EXTENSION
=
".bin"
;
public
static
final
String
PROVIDER_PACKAGE_NAME
=
"com.android.providers.downloads"
;
/**
* When a number has to be appended to the filename, this string is used to separate the
* base filename from the sequence number
...
...
This diff is collapsed.
Click to expand it.
src/com/android/providers/downloads/DownloadReceiver.java
View file @
8ec8bdeb
...
...
@@ -94,7 +94,7 @@ public class DownloadReceiver extends BroadcastReceiver {
handleNotificationBroadcast
(
context
,
intent
);
}
else
{
sAsyncHandler
.
post
(
new
Runnable
()
{
@Override
@Override
public
void
run
()
{
handleNotificationBroadcast
(
context
,
intent
);
result
.
finish
();
...
...
This diff is collapsed.
Click to expand it.
ui/src/com/android/providers/downloads/ui/DownloadList.java
View file @
8ec8bdeb
...
...
@@ -51,6 +51,7 @@ import android.widget.ExpandableListView.OnChildClickListener;
import
android.widget.ListView
;
import
android.widget.Toast
;
import
com.android.providers.downloads.Constants
;
import
com.android.providers.downloads.OpenHelper
;
import
java.io.FileNotFoundException
;
...
...
@@ -624,15 +625,11 @@ public class DownloadList extends Activity {
.
show
();
}
/**
* TODO use constants/shared code?
*/
private
void
sendRunningDownloadClickedBroadcast
(
long
id
)
{
Intent
intent
=
new
Intent
(
"android.intent.action.DOWNLOAD_LIST"
);
intent
.
setClassName
(
"com.android.providers.downloads"
,
"com.android.providers.downloads.DownloadReceiver"
);
intent
.
setData
(
ContentUris
.
withAppendedId
(
Downloads
.
Impl
.
ALL_DOWNLOADS_CONTENT_URI
,
id
));
intent
.
putExtra
(
"multiple"
,
false
);
final
Intent
intent
=
new
Intent
(
Constants
.
ACTION_LIST
);
intent
.
setPackage
(
Constants
.
PROVIDER_PACKAGE_NAME
);
intent
.
putExtra
(
DownloadManager
.
EXTRA_NOTIFICATION_CLICK_DOWNLOAD_IDS
,
new
long
[]
{
id
});
sendBroadcast
(
intent
);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment