From: masensio Date: Tue, 6 May 2014 10:55:21 +0000 (+0200) Subject: Revert "Grant that the content of the previous adapter is updated with rotations" X-Git-Tag: oc-android-1.7.0_signed~309^2~55 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/e5c3f2eaa569f9e19f6b8ed1331a1f8f8e8440a1?hp=--cc Revert "Grant that the content of the previous adapter is updated with rotations" This reverts commit 9820893fd91b627fe51b4f61f3b9ebe8dc783a3c. --- e5c3f2eaa569f9e19f6b8ed1331a1f8f8e8440a1 diff --git a/src/com/owncloud/android/providers/FileContentProvider.java b/src/com/owncloud/android/providers/FileContentProvider.java index fc038070..f76ae94b 100644 --- a/src/com/owncloud/android/providers/FileContentProvider.java +++ b/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); diff --git a/src/com/owncloud/android/ui/fragment/OCFileListFragment.java b/src/com/owncloud/android/ui/fragment/OCFileListFragment.java index 450f7569..91718da0 100644 --- a/src/com/owncloud/android/ui/fragment/OCFileListFragment.java +++ b/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(); @@ -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,