From: masensio Date: Tue, 10 Feb 2015 08:57:42 +0000 (+0100) Subject: Fix bug: Move view should not show as a grid X-Git-Tag: oc-android-1.7.0_signed~3 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/2c4b08395dd44f5883add1469334790626885867 Fix bug: Move view should not show as a grid --- diff --git a/src/com/owncloud/android/ui/fragment/OCFileListFragment.java b/src/com/owncloud/android/ui/fragment/OCFileListFragment.java index 5386ac8c..550b3a5b 100644 --- a/src/com/owncloud/android/ui/fragment/OCFileListFragment.java +++ b/src/com/owncloud/android/ui/fragment/OCFileListFragment.java @@ -78,6 +78,7 @@ public class OCFileListFragment extends ExtendedListFragment { private OCFile mFile = null; private FileListListAdapter mAdapter; private View mFooterView; + private boolean mJustFolders; private OCFile mTargetFile; @@ -130,9 +131,9 @@ public class OCFileListFragment extends ExtendedListFragment { setFooterView(mFooterView); Bundle args = getArguments(); - boolean justFolders = (args == null) ? false : args.getBoolean(ARG_JUST_FOLDERS, false); + mJustFolders = (args == null) ? false : args.getBoolean(ARG_JUST_FOLDERS, false); mAdapter = new FileListListAdapter( - justFolders, + mJustFolders, getSherlockActivity(), mContainerActivity ); @@ -399,7 +400,7 @@ public class OCFileListFragment extends ExtendedListFragment { // Update Footer TextView footerText = (TextView) mFooterView.findViewById(R.id.footerText); footerText.setText(generateFooterText(directory)); - if (DisplayUtils.decideViewLayout(files)){ + if (DisplayUtils.decideViewLayout(files) && !mJustFolders){ switchImageView(); } else { switchFileView();