From 5bbe15ed66d72dcab0ef133b9d237bba28cd6d98 Mon Sep 17 00:00:00 2001 From: Vasu Nori Date: Fri, 3 Dec 2010 11:13:50 -0800 Subject: downloads broken by Change-Id: I115b3ba6cfe0262269dbbc4c336b9e1d63c618e4 big typo in that CL broke the downloading functionality. Change-Id: If7dc0f86ea7a3c4394603416ca0fc33847f10fa7 --- src/com/android/providers/downloads/DownloadThread.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/providers/downloads/DownloadThread.java b/src/com/android/providers/downloads/DownloadThread.java index d783fea8..7c102481 100644 --- a/src/com/android/providers/downloads/DownloadThread.java +++ b/src/com/android/providers/downloads/DownloadThread.java @@ -791,7 +791,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