Adds missing Bluetooth as network type.
HÃ¥kan3 Johansson [Wed, 8 Feb 2012 20:07:27 +0000 (21:07 +0100)]
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: Ic32b083068d8316a41f2c31a3575a28163f6c7f3

src/com/android/providers/downloads/DownloadInfo.java

index 9ce58cd..e452e5b 100644 (file)
@@ -422,6 +422,9 @@ public class DownloadInfo {
             case ConnectivityManager.TYPE_WIFI:
                 return DownloadManager.Request.NETWORK_WIFI;
 
+            case ConnectivityManager.TYPE_BLUETOOTH:
+                return DownloadManager.Request.NETWORK_BLUETOOTH;
+
             default:
                 return 0;
         }