Android-x86
Fork
Faire un don

  • R/O
  • HTTP
  • SSH
  • HTTPS

packages-providers-DownloadProvider: Commit

packages/providers/DownloadProvider


Commit MetaInfo

Révisionc4ded39114db06c09c3ba0cf4700fce560272aca (tree)
l'heure2010-02-11 05:51:47
AuteurDan Egnor <egnor@goog...>
CommiterDan Egnor

Message de Log

Supply a Context to AndroidHttpClient.newInstance(), to enable
persistent SSL session caching.

Change Summary

Modification

--- a/src/com/android/providers/downloads/DownloadThread.java
+++ b/src/com/android/providers/downloads/DownloadThread.java
@@ -156,7 +156,7 @@ public class DownloadThread extends Thread {
156156 // progress to the database
157157 long timeLastNotification = 0;
158158
159- client = AndroidHttpClient.newInstance(userAgent());
159+ client = AndroidHttpClient.newInstance(userAgent(), mContext);
160160
161161 if (stream != null && mInfo.mDestination == Downloads.Impl.DESTINATION_EXTERNAL
162162 && !DrmRawContent.DRM_MIMETYPE_MESSAGE_STRING
Afficher sur ancien navigateur de dépôt.