Browse Source

Revert "Grant that the content of the previous adapter is updated with rotations"

This reverts commit 9820893fd91b627fe51b4f61f3b9ebe8dc783a3c.
masensio 11 years ago
parent
commit
e5c3f2eaa5

+ 1 - 1
src/com/owncloud/android/providers/FileContentProvider.java

@@ -484,7 +484,7 @@ public class FileContentProvider extends ContentProvider {
         }
         getContext().getContentResolver().notifyChange(uri, null);
         
-        // Get parentId to notify the change
+     // Get parentId to notify the change
         long parentId = getParentId(uri);
         // Notify the change to the parent folder
         notifyChangeToParentUri(parentId);

+ 1 - 3
src/com/owncloud/android/ui/fragment/OCFileListFragment.java

@@ -134,7 +134,7 @@ public class OCFileListFragment extends ExtendedListFragment
             mIndexes = savedInstanceState.getIntegerArrayList(KEY_INDEXES);
             mFirstPositions = savedInstanceState.getIntegerArrayList(KEY_FIRST_POSITIONS);
             mTops = savedInstanceState.getIntegerArrayList(KEY_TOPS);
-            onCreateLoader(LOADER_ID, null);
+            mHeightCell = savedInstanceState.getInt(KEY_HEIGHT_CELL);
             
         } else {
             mIndexes = new ArrayList<Integer>();
@@ -165,7 +165,6 @@ public class OCFileListFragment extends ExtendedListFragment
         outState.putIntegerArrayList(KEY_FIRST_POSITIONS, mFirstPositions);
         outState.putIntegerArrayList(KEY_TOPS, mTops);
         outState.putInt(KEY_HEIGHT_CELL, mHeightCell);
-        
     }
     
     /**
@@ -557,7 +556,6 @@ public class OCFileListFragment extends ExtendedListFragment
         if (storageManager != null) {
             mAdapter.setStorageManager(storageManager);
             mCursorLoader.setParentId(parentId);
-            mCursorLoader.setStorageManager(storageManager);
             newCursor = mCursorLoader.loadInBackground();//storageManager.getContent(folder.getFileId());
             Uri uri = Uri.withAppendedPath(
                     ProviderTableMeta.CONTENT_URI_DIR,