David A. Velasco 10 жил өмнө
parent
commit
1b628540c9

+ 0 - 6
src/com/owncloud/android/datamodel/FileDataStorageManager.java

@@ -168,12 +168,6 @@ public class FileDataStorageManager {
         return ret;
     }
 
-    public Vector<OCFile> getDownloadedFilesByAccount(String accountName) {
-        Vector<OCFile> ret = new Vector<OCFile>();
-
-        return ret;
-    }
-    
     public boolean saveFile(OCFile file) {
         boolean overriden = false;
         ContentValues cv = new ContentValues();

+ 4 - 4
src/com/owncloud/android/providers/FileContentProvider.java

@@ -854,7 +854,7 @@ public class FileContentProvider extends ContentProvider {
             // get accounts from AccountManager ;  we can't be sure if accounts in it are updated or not although
             // we know the update was previously done in {link @FileActivity#onCreate} because the changes through
             // AccountManager are not synchronous
-			Account[] accounts = AccountManager.get(getContext()).getAccountsByType(
+            Account[] accounts = AccountManager.get(getContext()).getAccountsByType(
                     MainApp.getAccountType());
             String serverUrl, username, oldAccountName, newAccountName;
 			for (Account account : accounts) {
@@ -888,9 +888,9 @@ public class FileContentProvider extends ContentProvider {
                     db.endTransaction();
                 }
 			}
-		} catch (Exception e) {
-			Log_OC.e(TAG, "Exception upgrading account names or paths in database", e);
-		}
+        } catch (Exception e) {
+            Log_OC.e(TAG, "Exception upgrading account names or paths in database", e);
+        }
     }