summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasu Nori <vnori@google.com>2010-12-02 14:45:30 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-12-02 14:45:30 -0800
commit26f86843f48b3d7878837a1a9f93865b3eba0aee (patch)
treed514e8be630547426541031bfc923ac5ce0eb946
parent6ae8b6efc5ce136b95c062268f12624b85332b6d (diff)
parente49f651bdce9fc91c6bad97f5c1bb26bba82e41f (diff)
downloadandroid_packages_providers_DownloadProvider-26f86843f48b3d7878837a1a9f93865b3eba0aee.zip
android_packages_providers_DownloadProvider-26f86843f48b3d7878837a1a9f93865b3eba0aee.tar.gz
android_packages_providers_DownloadProvider-26f86843f48b3d7878837a1a9f93865b3eba0aee.tar.bz2
Merge "(GB MR) bug:3144642 temporary small fix in GB MR and real fix in HC" into gingerbread
-rw-r--r--src/com/android/providers/downloads/DownloadThread.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/providers/downloads/DownloadThread.java b/src/com/android/providers/downloads/DownloadThread.java
index 2995bfb..d783fea 100644
--- a/src/com/android/providers/downloads/DownloadThread.java
+++ b/src/com/android/providers/downloads/DownloadThread.java
@@ -26,6 +26,7 @@ import android.os.PowerManager;
import android.os.Process;
import android.provider.Downloads;
import android.provider.DrmStore;
+import android.text.TextUtils;
import android.util.Log;
import android.util.Pair;
@@ -790,7 +791,7 @@ public class DownloadThread extends Thread {
*/
private void setupDestinationFile(State state, InnerState innerState)
throws StopRequest {
- if (state.mFilename != null) { // only true if we've already run a thread for this download
+ if (TextUtils.isEmpty(state.mFilename)) { // only true if we've already run a thread for this download
if (!Helpers.isFilenameValid(state.mFilename)) {
// this should never happen
throw new StopRequest(Downloads.Impl.STATUS_FILE_ERROR,