private OCFile mFile = null;
private FileListListAdapter mAdapter;
private View mFooterView;
+ private boolean mJustFolders;
private OCFile mTargetFile;
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
);
// 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();