Revision 69ecaf02 F-Droid/src/org/fdroid/fdroid/receiver/DownloadManagerReceiver.java
F-Droid/src/org/fdroid/fdroid/receiver/DownloadManagerReceiver.java | ||
---|---|---|
11 | 11 |
|
12 | 12 |
import org.fdroid.fdroid.AppDetails; |
13 | 13 |
import org.fdroid.fdroid.R; |
14 |
import org.fdroid.fdroid.net.AsyncDownloader; |
|
14 |
import org.fdroid.fdroid.net.AsyncDownloaderFromAndroid;
|
|
15 | 15 |
|
16 | 16 |
/** |
17 | 17 |
* Receive notifications from the Android DownloadManager and pass them onto the |
... | ... | |
21 | 21 |
@Override |
22 | 22 |
public void onReceive(Context context, Intent intent) { |
23 | 23 |
// work out the app Id to send to the AppDetails Screen |
24 |
long downloadId = AsyncDownloader.getDownloadId(intent); |
|
25 |
String appId = AsyncDownloader.getAppId(context, downloadId); |
|
24 |
long downloadId = AsyncDownloaderFromAndroid.getDownloadId(intent);
|
|
25 |
String appId = AsyncDownloaderFromAndroid.getAppId(context, downloadId);
|
|
26 | 26 |
|
27 | 27 |
if (appId == null) { |
28 | 28 |
// bogus broadcast (e.g. download cancelled, but system sent a DOWNLOAD_COMPLETE) |
... | ... | |
41 | 41 |
context, 1, appDetails, PendingIntent.FLAG_ONE_SHOT); |
42 | 42 |
|
43 | 43 |
// launch LocalRepoActivity if the user selects this notification |
44 |
String downloadTitle = AsyncDownloader.getDownloadTitle(context, downloadId); |
|
44 |
String downloadTitle = AsyncDownloaderFromAndroid.getDownloadTitle(context, downloadId);
|
|
45 | 45 |
Notification notif = new NotificationCompat.Builder(context) |
46 | 46 |
.setContentTitle(downloadTitle) |
47 | 47 |
.setContentText(context.getString(R.string.tap_to_install)) |
Also available in: Unified diff