Update filelist for update actions, sent notification to uri in FileContenProvider
authormasensio <masensio@solidgear.es>
Fri, 2 May 2014 12:33:23 +0000 (14:33 +0200)
committermasensio <masensio@solidgear.es>
Fri, 2 May 2014 12:33:23 +0000 (14:33 +0200)
src/com/owncloud/android/providers/FileContentProvider.java

index 19b64bb..f76ae94 100644 (file)
@@ -483,6 +483,12 @@ public class FileContentProvider extends ContentProvider {
             db.endTransaction();
         }
         getContext().getContentResolver().notifyChange(uri, null);
+        
+     // Get parentId to notify the change
+        long parentId = getParentId(uri);
+        // Notify the change to the parent folder
+        notifyChangeToParentUri(parentId);
+        
         return count;
     }