Skip to content

Commit 011238b

Browse files
Håkan3 JohanssonHenrik Baard
authored andcommitted
Adds missing Bluetooth as network type.
The network connection type for Bluetooth is added so that it is possible to use Bluetooth as Hotspot during download from the Internet. Change-Id: If8e8a3f69821beef742bc91d7a292a091861b48b
1 parent 13a3a87 commit 011238b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

core/java/android/app/DownloadManager.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,13 @@ public static class Request {
344344
*/
345345
public static final int NETWORK_WIFI = 1 << 1;
346346

347+
/**
348+
* Bit flag for {@link #setAllowedNetworkTypes} corresponding to
349+
* {@link ConnectivityManager#TYPE_BLUETOOTH}.
350+
* @hide
351+
*/
352+
public static final int NETWORK_BLUETOOTH = 1 << 2;
353+
347354
private Uri mUri;
348355
private Uri mDestinationUri;
349356
private List<Pair<String, String>> mRequestHeaders = new ArrayList<Pair<String, String>>();

0 commit comments

Comments
 (0)