Revert commit 6cdd830a7be28b77688efc3cd62857c1e71a1342
[pub/Android/ownCloud.git] / src / com / owncloud / android / datamodel / FileDataStorageManager.java
index 5decb56..39b1959 100644 (file)
@@ -33,7 +33,6 @@ import com.owncloud.android.lib.resources.files.FileUtils;
 import com.owncloud.android.utils.FileStorageUtils;
 import com.owncloud.android.utils.Log_OC;
 
-
 import android.accounts.Account;
 import android.content.ContentProviderClient;
 import android.content.ContentProviderOperation;
@@ -611,6 +610,7 @@ public class FileDataStorageManager {
     
     
     public Cursor getContent(long parentId) {
+        Log_OC.d(TAG, "getContent start");
         Uri req_uri = Uri.withAppendedPath(
                 ProviderTableMeta.CONTENT_URI_DIR,
                 String.valueOf(parentId));
@@ -629,8 +629,12 @@ public class FileDataStorageManager {
             c = getContentResolver().query(req_uri, null, 
                     ProviderTableMeta.FILE_PARENT + "=?" ,
                     new String[] { String.valueOf(parentId)}, null);
+            
+            //Log_OC.d(TAG, "getContent Uri " + req_uri);
+            //c.setNotificationUri(getContentResolver(), req_uri);
         }
         
+        Log_OC.d(TAG, "getContent end");
         return c;
     }
     
@@ -724,7 +728,7 @@ public class FileDataStorageManager {
 //        return c;
 //    }
 
-    private OCFile createFileInstance(Cursor c) {
+    public OCFile createFileInstance(Cursor c) {
         OCFile file = null;
         if (c != null) {
             file = new OCFile(c.getString(c
@@ -1325,4 +1329,5 @@ public class FileDataStorageManager {
             */
         //}
     }
+    
 }