From: masensio Date: Fri, 17 Apr 2015 09:05:13 +0000 (+0200) Subject: Remove comments X-Git-Tag: test~30^2~6 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/f12956fe2a4b590e450e9d4df1653e6eed8b636d?ds=inline;hp=--cc Remove comments --- f12956fe2a4b590e450e9d4df1653e6eed8b636d diff --git a/src/com/owncloud/android/providers/FileContentProvider.java b/src/com/owncloud/android/providers/FileContentProvider.java index 8209a293..63a65017 100644 --- a/src/com/owncloud/android/providers/FileContentProvider.java +++ b/src/com/owncloud/android/providers/FileContentProvider.java @@ -866,9 +866,8 @@ public class FileContentProvider extends ContentProvider { ProviderTableMeta.FILE_ACCOUNT_OWNER + "=?", new String[]{ oldAccountName }); upgraded = true; - db.setTransactionSuccessful(); - Log_OC.d("SQL", "Updated account in database: old name == " + oldAccountName + + Log_OC.d("SQL", "Updated account in database: old name == " + oldAccountName + ", new name == " + newAccountName + " (" + num + " rows updated )"); // update path for downloaded files @@ -894,11 +893,6 @@ public class FileContentProvider extends ContentProvider { boolean upgraded = false; boolean renamed = false; -// String selectQuery = "SELECT * FROM " + -// ProviderTableMeta.FILE_TABLE_NAME +" WHERE " + -// ProviderTableMeta.FILE_ACCOUNT_OWNER +"='"+ newAccountName + "' AND " + -// ProviderTableMeta.FILE_STORAGE_PATH + " IS NOT NULL;"; - String whereClause = ProviderTableMeta.FILE_ACCOUNT_OWNER + "=? AND " + ProviderTableMeta.FILE_STORAGE_PATH + " IS NOT NULL"; @@ -908,7 +902,6 @@ public class FileContentProvider extends ContentProvider { new String[] { newAccountName }, null, null, null); -// Log_OC.d("SQL", selectQuery); if (c.moveToFirst()) { // create storage path String oldAccountPath = FileStorageUtils.getSavePath(oldAccountName); @@ -938,7 +931,6 @@ public class FileContentProvider extends ContentProvider { ProviderTableMeta.FILE_STORAGE_PATH + "=?", new String[]{oldPath}); upgraded = true; - db.setTransactionSuccessful(); Log_OC.d("SQL", "Updated downloaded files: old file name == " + oldPath + ", new file name == " + newPath);