From 2c4b08395dd44f5883add1469334790626885867 Mon Sep 17 00:00:00 2001 From: masensio Date: Tue, 10 Feb 2015 09:57:42 +0100 Subject: [PATCH] Fix bug: Move view should not show as a grid --- src/com/owncloud/android/ui/fragment/OCFileListFragment.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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(); -- 2.11.0