mirror of
https://github.com/nextcloud/android.git
synced 2024-12-18 23:11:58 +03:00
fix compile error after lib merges
# Conflicts: # src/com/owncloud/android/ui/activity/ShareActivity.java
This commit is contained in:
parent
0f7e51fc37
commit
c1c306150f
2 changed files with 7 additions and 4 deletions
|
@ -42,7 +42,6 @@ import com.owncloud.android.operations.CreateShareViaLinkOperation;
|
|||
import com.owncloud.android.operations.GetSharesForFileOperation;
|
||||
import com.owncloud.android.operations.UnshareOperation;
|
||||
import com.owncloud.android.operations.UpdateSharePermissionsOperation;
|
||||
import com.owncloud.android.providers.UsersAndGroupsSearchProvider;
|
||||
import com.owncloud.android.ui.dialog.ShareLinkToDialog;
|
||||
import com.owncloud.android.ui.fragment.EditShareFragment;
|
||||
import com.owncloud.android.ui.fragment.SearchShareesFragment;
|
||||
|
@ -51,6 +50,7 @@ import com.owncloud.android.ui.fragment.ShareFragmentListener;
|
|||
import com.owncloud.android.utils.ErrorMessageAdapter;
|
||||
import com.owncloud.android.utils.GetShareWithUsersAsyncTask;
|
||||
|
||||
import org.nextcloud.providers.UsersAndGroupsSearchProvider;
|
||||
import java.util.ArrayList;
|
||||
|
||||
|
||||
|
@ -154,10 +154,12 @@ public class ShareActivity extends FileActivity
|
|||
return OCShare.READ_PERMISSION_FLAG; // minimum permissions
|
||||
|
||||
} else if (getFile().isFolder()) {
|
||||
return (isFederated) ? OCShare.FEDERATED_PERMISSIONS_FOR_FOLDER : OCShare.MAXIMUM_PERMISSIONS_FOR_FOLDER;
|
||||
return (isFederated) ? OCShare.FEDERATED_PERMISSIONS_FOR_FOLDER_UP_TO_OC9 :
|
||||
OCShare.MAXIMUM_PERMISSIONS_FOR_FOLDER;
|
||||
|
||||
} else { // isFile
|
||||
return (isFederated) ? OCShare.FEDERATED_PERMISSIONS_FOR_FILE : OCShare.MAXIMUM_PERMISSIONS_FOR_FILE;
|
||||
return (isFederated) ? OCShare.FEDERATED_PERMISSIONS_FOR_FILE_UP_TO_OC9 :
|
||||
OCShare.MAXIMUM_PERMISSIONS_FOR_FILE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -479,7 +479,8 @@ public class FileOperationsHelper {
|
|||
updateShareIntent.putExtra(OperationsService.EXTRA_SHARE_PERMISSIONS, OCShare.CREATE_PERMISSION_FLAG);
|
||||
} else {
|
||||
updateShareIntent.
|
||||
putExtra(OperationsService.EXTRA_SHARE_PERMISSIONS, OCShare.FEDERATED_PERMISSIONS_FOR_FOLDER);
|
||||
putExtra(OperationsService.EXTRA_SHARE_PERMISSIONS,
|
||||
OCShare.FEDERATED_PERMISSIONS_FOR_FOLDER_UP_TO_OC9);
|
||||
}
|
||||
|
||||
queueShareIntent(updateShareIntent);
|
||||
|
|
Loading…
Reference in a new issue