diff options
author | Vasu Nori <vnori@google.com> | 2010-12-02 14:45:30 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-12-02 14:45:30 -0800 |
commit | 26f86843f48b3d7878837a1a9f93865b3eba0aee (patch) | |
tree | d514e8be630547426541031bfc923ac5ce0eb946 /src/com/android/providers | |
parent | 6ae8b6efc5ce136b95c062268f12624b85332b6d (diff) | |
parent | e49f651bdce9fc91c6bad97f5c1bb26bba82e41f (diff) | |
download | android_packages_providers_DownloadProvider-26f86843f48b3d7878837a1a9f93865b3eba0aee.tar.gz android_packages_providers_DownloadProvider-26f86843f48b3d7878837a1a9f93865b3eba0aee.tar.bz2 android_packages_providers_DownloadProvider-26f86843f48b3d7878837a1a9f93865b3eba0aee.zip |
Merge "(GB MR) bug:3144642 temporary small fix in GB MR and real fix in HC" into gingerbread
Diffstat (limited to 'src/com/android/providers')
-rw-r--r-- | src/com/android/providers/downloads/DownloadThread.java | 3 |
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 2995bfb6..d783fea8 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, |