Revision 69ecaf02 F-Droid/src/org/fdroid/fdroid/AppDetails.java
F-Droid/src/org/fdroid/fdroid/AppDetails.java | ||
---|---|---|
22 | 22 |
package org.fdroid.fdroid; |
23 | 23 |
|
24 | 24 |
import android.app.Activity; |
25 |
import android.app.DownloadManager; |
|
26 | 25 |
import android.bluetooth.BluetoothAdapter; |
27 | 26 |
import android.content.ActivityNotFoundException; |
28 | 27 |
import android.content.BroadcastReceiver; |
... | ... | |
35 | 34 |
import android.content.pm.PackageManager; |
36 | 35 |
import android.content.pm.Signature; |
37 | 36 |
import android.database.ContentObserver; |
38 |
import android.database.Cursor; |
|
39 | 37 |
import android.graphics.Bitmap; |
40 | 38 |
import android.net.Uri; |
41 | 39 |
import android.os.Bundle; |
... | ... | |
94 | 92 |
import org.fdroid.fdroid.installer.Installer.AndroidNotCompatibleException; |
95 | 93 |
import org.fdroid.fdroid.installer.Installer.InstallerCallback; |
96 | 94 |
import org.fdroid.fdroid.net.ApkDownloader; |
97 |
import org.fdroid.fdroid.net.AsyncDownloader; |
|
95 |
import org.fdroid.fdroid.net.AsyncDownloaderFromAndroid;
|
|
98 | 96 |
import org.fdroid.fdroid.net.Downloader; |
99 | 97 |
|
100 | 98 |
import java.io.File; |
... | ... | |
435 | 433 |
localBroadcastManager = LocalBroadcastManager.getInstance(this); |
436 | 434 |
|
437 | 435 |
// Check if a download is running for this app |
438 |
if (AsyncDownloader.isDownloading(this, app.id) >= 0) { |
|
436 |
if (AsyncDownloaderFromAndroid.isDownloading(this, app.id) >= 0) {
|
|
439 | 437 |
// call install() to re-setup the listeners and downloaders |
440 | 438 |
// the AsyncDownloader will not restart the download since the download is running, |
441 | 439 |
// and thus the version we pass to install() is not important |
Also available in: Unified diff