-
- if (needToRefresh) {
- OCFileListFragment fileListFragment = getListOfFilesFragment();
- if (fileListFragment != null) {
- fileListFragment.listDirectory(currentDir);
- }
- boolean existsSecondFragment = (getSecondFragment() != null);
- if (!existsSecondFragment) {
- setFile(currentDir);
- }
- //updateFragmentsVisibility(existsSecondFragment);
- updateNavigationElementsInActionBar(existsSecondFragment ? getFile() : null);
+ //boolean existsSecondFragment = (getSecondFragment() != null);
+ //if (!existsSecondFragment) {
+ if (getSecondFragment() == null) {
+ setFile(currentDir);