OSDN Git Service

Supply a Context to AndroidHttpClient.newInstance(), to enable
authorDan Egnor <egnor@google.com>
Wed, 10 Feb 2010 20:51:47 +0000 (12:51 -0800)
committerDan Egnor <egnor@google.com>
Wed, 10 Feb 2010 20:51:47 +0000 (12:51 -0800)
persistent SSL session caching.

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

index 2709c4f..d1fe355 100644 (file)
@@ -156,7 +156,7 @@ public class DownloadThread extends Thread {
             //     progress to the database
             long timeLastNotification = 0;
 
-            client = AndroidHttpClient.newInstance(userAgent());
+            client = AndroidHttpClient.newInstance(userAgent(), mContext);
 
             if (stream != null && mInfo.mDestination == Downloads.Impl.DESTINATION_EXTERNAL
                         && !DrmRawContent.DRM_MIMETYPE_MESSAGE_STRING