From 9804b40839678e01ff664ccf99322ba0b882588f Mon Sep 17 00:00:00 2001 From: masensio Date: Tue, 6 May 2014 12:56:42 +0200 Subject: [PATCH] Revert "Update filelist for insert actions, sent notification to uri in FileContenProvider" This reverts commit 4834fe15c72bf893441e9d370dc2db4559ce35ac. --- src/com/owncloud/android/providers/FileContentProvider.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/com/owncloud/android/providers/FileContentProvider.java b/src/com/owncloud/android/providers/FileContentProvider.java index 19b64bb2..1a5810bd 100644 --- a/src/com/owncloud/android/providers/FileContentProvider.java +++ b/src/com/owncloud/android/providers/FileContentProvider.java @@ -171,7 +171,7 @@ public class FileContentProvider extends ContentProvider { if (mUriMatcher.match(uri) == SINGLE_FILE || mUriMatcher.match(uri) == DIRECTORY) { String fileId = uri.toString().substring(uri.toString().lastIndexOf(FileUtils.PATH_SEPARATOR) + 1); Uri selectFileUri = Uri.withAppendedPath(ProviderTableMeta.CONTENT_URI_FILE, fileId); - String[] fileProjection = new String[] { ProviderTableMeta.FILE_PARENT }; + String[] fileProjection = new String[] { ProviderTableMeta.FILE_PARENT}; Cursor fileCursor = query(selectFileUri, fileProjection, null, null, null); if (fileCursor != null && fileCursor.moveToFirst()) { @@ -294,8 +294,6 @@ public class FileContentProvider extends ContentProvider { Uri newUri = null; SQLiteDatabase db = mDbHelper.getWritableDatabase(); db.beginTransaction(); - - // Insert action try { newUri = insert(db, uri, values); db.setTransactionSuccessful(); @@ -303,12 +301,6 @@ public class FileContentProvider extends ContentProvider { db.endTransaction(); } getContext().getContentResolver().notifyChange(newUri, null); - - // Get parentId to notify the change - long parentId = getParentId(newUri); - // Notify the change to the parent folder - notifyChangeToParentUri(parentId); - return newUri; } -- 2.11.0