|
@@ -1244,11 +1244,9 @@ public class FileDisplayActivity extends HookActivity
|
|
|
}
|
|
|
|
|
|
mSyncInProgress = (!FileSyncAdapter.EVENT_FULL_SYNC_END.equals(event) &&
|
|
|
- !RefreshFolderOperation.EVENT_SINGLE_FOLDER_SHARES_SYNCED
|
|
|
- .equals(event));
|
|
|
+ !RefreshFolderOperation.EVENT_SINGLE_FOLDER_SHARES_SYNCED.equals(event));
|
|
|
|
|
|
- if (RefreshFolderOperation.EVENT_SINGLE_FOLDER_CONTENTS_SYNCED.
|
|
|
- equals(event) &&
|
|
|
+ if (RefreshFolderOperation.EVENT_SINGLE_FOLDER_CONTENTS_SYNCED.equals(event) &&
|
|
|
synchResult != null && !synchResult.isSuccess()) {
|
|
|
|
|
|
/// TODO refactor and make common
|
|
@@ -1301,10 +1299,10 @@ public class FileDisplayActivity extends HookActivity
|
|
|
private void setBackgroundText() {
|
|
|
final OCFileListFragment ocFileListFragment = getListOfFilesFragment();
|
|
|
if (ocFileListFragment != null) {
|
|
|
- if (!mSyncInProgress) {
|
|
|
- ocFileListFragment.setEmptyListMessage(ExtendedListFragment.SearchType.NO_SEARCH);
|
|
|
- } else {
|
|
|
+ if (mSyncInProgress) {
|
|
|
ocFileListFragment.setEmptyListLoadingMessage();
|
|
|
+ } else {
|
|
|
+ ocFileListFragment.setEmptyListMessage(ExtendedListFragment.SearchType.NO_SEARCH);
|
|
|
}
|
|
|
} else {
|
|
|
Log_OC.e(TAG, "OCFileListFragment is null");
|