downloads broken by Change-Id: I115b3ba6cfe0262269dbbc4c336b9e1d63c618e4
Vasu Nori [Fri, 3 Dec 2010 19:13:50 +0000 (11:13 -0800)]
big typo in that CL broke the downloading functionality.

Change-Id: If7dc0f86ea7a3c4394603416ca0fc33847f10fa7

src/com/android/providers/downloads/DownloadThread.java

index d783fea..7c10248 100644 (file)
@@ -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,