|
@@ -333,10 +333,7 @@ public class FileDisplayActivity extends HookActivity
|
|
/// First fragment
|
|
/// First fragment
|
|
OCFileListFragment listOfFiles = getListOfFilesFragment();
|
|
OCFileListFragment listOfFiles = getListOfFilesFragment();
|
|
if (listOfFiles != null) {
|
|
if (listOfFiles != null) {
|
|
- listOfFiles.listDirectory(getCurrentDir());
|
|
|
|
- // TODO Enable when "On Device" is recovered
|
|
|
|
- // listOfFiles.listDirectory(getCurrentDir(), MainApp.getOnlyOnDevice());
|
|
|
|
-
|
|
|
|
|
|
+ listOfFiles.listDirectory(getCurrentDir(), MainApp.getOnlyOnDevice());
|
|
} else {
|
|
} else {
|
|
Log_OC.e(TAG, "Still have a chance to lose the initializacion of list fragment >(");
|
|
Log_OC.e(TAG, "Still have a chance to lose the initializacion of list fragment >(");
|
|
}
|
|
}
|
|
@@ -464,9 +461,7 @@ public class FileDisplayActivity extends HookActivity
|
|
protected void refreshListOfFilesFragment() {
|
|
protected void refreshListOfFilesFragment() {
|
|
OCFileListFragment fileListFragment = getListOfFilesFragment();
|
|
OCFileListFragment fileListFragment = getListOfFilesFragment();
|
|
if (fileListFragment != null) {
|
|
if (fileListFragment != null) {
|
|
- fileListFragment.listDirectory();
|
|
|
|
- // TODO Enable when "On Device" is recovered ?
|
|
|
|
- // fileListFragment.listDirectory(MainApp.getOnlyOnDevice());
|
|
|
|
|
|
+ fileListFragment.listDirectory(MainApp.getOnlyOnDevice());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -956,10 +951,8 @@ public class FileDisplayActivity extends HookActivity
|
|
currentDir.getRemotePath().equals(synchFolderRemotePath)) {
|
|
currentDir.getRemotePath().equals(synchFolderRemotePath)) {
|
|
OCFileListFragment fileListFragment = getListOfFilesFragment();
|
|
OCFileListFragment fileListFragment = getListOfFilesFragment();
|
|
if (fileListFragment != null) {
|
|
if (fileListFragment != null) {
|
|
- fileListFragment.listDirectory();
|
|
|
|
- // TODO Enable when "On Device" is recovered ?
|
|
|
|
- // fileListFragment.listDirectory(currentDir,
|
|
|
|
- // MainApp.getOnlyOnDevice());
|
|
|
|
|
|
+ fileListFragment.listDirectory(currentDir,
|
|
|
|
+ MainApp.getOnlyOnDevice());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
setFile(currentFile);
|
|
setFile(currentFile);
|
|
@@ -1196,9 +1189,7 @@ public class FileDisplayActivity extends HookActivity
|
|
OCFileListFragment listOfFiles = getListOfFilesFragment();
|
|
OCFileListFragment listOfFiles = getListOfFilesFragment();
|
|
if (listOfFiles != null) { // should never be null, indeed
|
|
if (listOfFiles != null) { // should never be null, indeed
|
|
OCFile root = getStorageManager().getFileByPath(OCFile.ROOT_PATH);
|
|
OCFile root = getStorageManager().getFileByPath(OCFile.ROOT_PATH);
|
|
- listOfFiles.listDirectory(root);
|
|
|
|
- // TODO Enable when "On Device" is recovered ?
|
|
|
|
- // listOfFiles.listDirectory(root, MainApp.getOnlyOnDevice());
|
|
|
|
|
|
+ listOfFiles.listDirectory(root, MainApp.getOnlyOnDevice());
|
|
setFile(listOfFiles.getCurrentFile());
|
|
setFile(listOfFiles.getCurrentFile());
|
|
startSyncFolderOperation(root, false);
|
|
startSyncFolderOperation(root, false);
|
|
}
|
|
}
|
|
@@ -1285,9 +1276,7 @@ public class FileDisplayActivity extends HookActivity
|
|
// getFileDownloadBinder() - THIS IS A MESS
|
|
// getFileDownloadBinder() - THIS IS A MESS
|
|
OCFileListFragment listOfFiles = getListOfFilesFragment();
|
|
OCFileListFragment listOfFiles = getListOfFilesFragment();
|
|
if (listOfFiles != null) {
|
|
if (listOfFiles != null) {
|
|
- listOfFiles.listDirectory();
|
|
|
|
- // TODO Enable when "On Device" is recovered ?
|
|
|
|
- // listOfFiles.listDirectory(MainApp.getOnlyOnDevice());
|
|
|
|
|
|
+ listOfFiles.listDirectory(MainApp.getOnlyOnDevice());
|
|
}
|
|
}
|
|
FileFragment secondFragment = getSecondFragment();
|
|
FileFragment secondFragment = getSecondFragment();
|
|
if (secondFragment != null && secondFragment instanceof FileDetailFragment) {
|
|
if (secondFragment != null && secondFragment instanceof FileDetailFragment) {
|