Merge branch 'develop' into cancel_transfer_for_deleted_users
[pub/Android/ownCloud.git] / src / com / owncloud / android / ui / activity / Preferences.java
index 701520c..3b98061 100644 (file)
@@ -1,6 +1,6 @@
 /* ownCloud Android client application
  *   Copyright (C) 2011  Bartek Przybylski
- *   Copyright (C) 2012-2013 ownCloud Inc.
+ *   Copyright (C) 2012-2015 ownCloud Inc.
  *
  *   This program is free software: you can redistribute it and/or modify
  *   it under the terms of the GNU General Public License version 2,
@@ -65,6 +65,8 @@ import com.owncloud.android.services.OperationsService;
 import com.owncloud.android.ui.RadioButtonPreference;
 import com.owncloud.android.utils.DisplayUtils;
 
+import java.io.File;
+
 
 /**
  * An Activity that allows the user to change the application's settings.
@@ -443,6 +445,7 @@ public class Preferences extends SherlockPreferenceActivity
             if (!AccountUtils.exists(account, MainApp.getAppContext())) {
                 // Cancel tranfers
                 mUploaderBinder.cancel(account);
+                mDownloaderBinder.cancel(account);
             }
 
             Account a = AccountUtils.getCurrentOwnCloudAccount(this);