summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/FetchUrlMimeType.java
diff options
context:
space:
mode:
authorVasu Nori <vnori@google.com>2010-12-18 20:15:46 -0800
committerVasu Nori <vnori@google.com>2010-12-19 02:06:04 -0800
commitc2df8342039829c868b30ad3bc3f865e26a04b1c (patch)
treee4ef73a26fb689d3132144fb7f85354e1cdbb3ab /src/com/android/browser/FetchUrlMimeType.java
parent9b898f43be19f9367263c78297e03e3af3748069 (diff)
downloadpackages_apps_browser-c2df8342039829c868b30ad3bc3f865e26a04b1c.zip
packages_apps_browser-c2df8342039829c868b30ad3bc3f865e26a04b1c.tar.gz
packages_apps_browser-c2df8342039829c868b30ad3bc3f865e26a04b1c.tar.bz2
bug:3297328 set download destination dir to /sdcard/Download
downlaoded files should go into /sdcard/Download, like they used to in GB and earlier. But a minor difference in the download dir name: it used to be /sdcard/download in before HC /sdcard/Download in HC how serious is this difference? Change-Id: Ib56d8ee6a1393fd781399281be98b8c52831ebe1
Diffstat (limited to 'src/com/android/browser/FetchUrlMimeType.java')
-rw-r--r--src/com/android/browser/FetchUrlMimeType.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/browser/FetchUrlMimeType.java b/src/com/android/browser/FetchUrlMimeType.java
index 2538d90..85c588e 100644
--- a/src/com/android/browser/FetchUrlMimeType.java
+++ b/src/com/android/browser/FetchUrlMimeType.java
@@ -27,6 +27,7 @@ import android.app.DownloadManager;
import android.content.Context;
import android.net.Proxy;
import android.net.http.AndroidHttpClient;
+import android.os.Environment;
import android.webkit.MimeTypeMap;
import android.webkit.URLUtil;
@@ -116,7 +117,7 @@ class FetchUrlMimeType extends Thread {
}
String filename = URLUtil.guessFileName(mUri, contentDisposition,
mimeType);
- mRequest.setDestinationInExternalFilesDir(mActivity, null, filename);
+ mRequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename);
}
// Start the download