mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 21:25:35 +03:00
Merge pull request #8639 from nextcloud/shareType
Add new ShareType: GUEST, FEDERATED_GROUP, DECK, DECK_USER
This commit is contained in:
commit
33157b5e66
3 changed files with 10 additions and 10 deletions
|
@ -1373,7 +1373,7 @@ public class FileDataStorageManager {
|
|||
}
|
||||
|
||||
// TODO shares null?
|
||||
public void saveShares(Collection<OCShare> shares) {
|
||||
public void saveShares(List<OCShare> shares) {
|
||||
cleanShares();
|
||||
ArrayList<ContentProviderOperation> operations = new ArrayList<>(shares.size());
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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<List>) 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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue