소스 검색

Update filelist for update actions, sent notification to uri in FileContenProvider

masensio 11 년 전
부모
커밋
8283b301e1
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/com/owncloud/android/providers/FileContentProvider.java

+ 6 - 0
src/com/owncloud/android/providers/FileContentProvider.java

@@ -483,6 +483,12 @@ public class FileContentProvider extends ContentProvider {
             db.endTransaction();
             db.endTransaction();
         }
         }
         getContext().getContentResolver().notifyChange(uri, null);
         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;
         return count;
     }
     }