diff --git a/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java b/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java index 03c7de1404..a4c4d19cf8 100644 --- a/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java +++ b/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java @@ -1373,7 +1373,7 @@ public class FileDataStorageManager { } // TODO shares null? - public void saveShares(Collection shares) { + public void saveShares(List shares) { cleanShares(); ArrayList operations = new ArrayList<>(shares.size()); diff --git a/src/main/java/com/owncloud/android/providers/FileContentProvider.java b/src/main/java/com/owncloud/android/providers/FileContentProvider.java index 7664ffb8c9..9365c189c0 100644 --- a/src/main/java/com/owncloud/android/providers/FileContentProvider.java +++ b/src/main/java/com/owncloud/android/providers/FileContentProvider.java @@ -403,8 +403,11 @@ public class FileContentProvider extends ContentProvider { case GROUP: case EMAIL: case FEDERATED: + case FEDERATED_GROUP: case ROOM: case CIRCLE: + case DECK: + case GUEST: fileValues.put(ProviderTableMeta.FILE_SHARED_WITH_SHAREE, 1); break; diff --git a/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java b/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java index 00d6897f4c..eb59934e03 100644 --- a/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java +++ b/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java @@ -1555,12 +1555,12 @@ public class OCFileListFragment extends ExtendedListFragment implements storageManager = mContainerActivity.getStorageManager(); } - if (remoteOperationResult.isSuccess() && remoteOperationResult.getData() != null + if (remoteOperationResult.isSuccess() && remoteOperationResult.getResultData() != null && !isCancelled() && searchFragment) { - if (remoteOperationResult.getData() == null || remoteOperationResult.getData().size() == 0) { + if (remoteOperationResult.getResultData() == null || ((List) remoteOperationResult.getResultData()).isEmpty()) { setEmptyView(event); } else { - mAdapter.setData(remoteOperationResult.getData(), + mAdapter.setData(((RemoteOperationResult) remoteOperationResult).getResultData(), currentSearchType, storageManager, mFile, @@ -1570,12 +1570,9 @@ public class OCFileListFragment extends ExtendedListFragment implements final ToolbarActivity fileDisplayActivity = (ToolbarActivity) getActivity(); if (fileDisplayActivity != null) { - fileDisplayActivity.runOnUiThread(new Runnable() { - @Override - public void run() { - if (fileDisplayActivity != null) { - setLoading(false); - } + fileDisplayActivity.runOnUiThread(() -> { + if (fileDisplayActivity != null) { + setLoading(false); } }); }