Don't use download manager for Bluetooth downloads.
The F-Droid Bluetooth downloader must be used for these, as it is a custom protocol and Android download manager only understands HTTP and HTTPS.
This commit is contained in:
parent
012cdce37b
commit
f388f32fcf
@ -108,6 +108,10 @@ public class DownloaderFactory {
|
|||||||
// We support onion addresses through our own downloader.
|
// We support onion addresses through our own downloader.
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (isBluetoothAddress(url)) {
|
||||||
|
// Completely differnet protocol not understood by the download manager.
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return hasDownloadManager(context);
|
return hasDownloadManager(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user