From c988ce18d1525820f6371d91809c056019e5b577 Mon Sep 17 00:00:00 2001 From: Vasu Nori Date: Fri, 3 Dec 2010 13:19:04 -0800 Subject: manually merging Change-Id: If7dc0f86ea7a3c4394603416ca0fc33847f10fa7 need this CL from GB. without it, downloads are badly broken in master. Change-Id: I82ebc467f877bed50e373c437481ad19e14635bf --- src/com/android/providers/downloads/DownloadThread.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/com/android/providers/downloads/DownloadThread.java b/src/com/android/providers/downloads/DownloadThread.java index 0728c31a..a1d91019 100644 --- a/src/com/android/providers/downloads/DownloadThread.java +++ b/src/com/android/providers/downloads/DownloadThread.java @@ -801,7 +801,7 @@ public class DownloadThread extends Thread { */ private void setupDestinationFile(State state, InnerState innerState) throws StopRequest { - if (TextUtils.isEmpty(state.mFilename)) { // 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, -- cgit v1.2.3