mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
Fixes from CR
This commit is contained in:
parent
9df957d548
commit
4d13b49631
2 changed files with 3 additions and 6 deletions
|
@ -116,7 +116,8 @@ public class CreateShareViaLinkOperation extends SyncOperation {
|
|||
|
||||
public Intent getSendIntentWithSubject(Context context) {
|
||||
if (context != null && mSendIntent != null && mSendIntent.getStringExtra(Intent.EXTRA_SUBJECT) != null) {
|
||||
if (getClient() == null || getClient().getCredentials().getUsername() == null) {
|
||||
if (getClient() == null || getClient().getCredentials() == null ||
|
||||
getClient().getCredentials().getUsername() == null) {
|
||||
mSendIntent.putExtra(
|
||||
Intent.EXTRA_SUBJECT,
|
||||
context.getString(R.string.subject_shared_with_you, mFileName)
|
||||
|
|
|
@ -102,11 +102,7 @@ public class CreateShareWithShareeOperation extends SyncOperation {
|
|||
private void updateData(OCShare share) {
|
||||
// Update DB with the response
|
||||
share.setPath(mPath);
|
||||
if (mPath.endsWith(FileUtils.PATH_SEPARATOR)) {
|
||||
share.setIsFolder(true);
|
||||
} else {
|
||||
share.setIsFolder(false);
|
||||
}
|
||||
share.setIsFolder(mPath.endsWith(FileUtils.PATH_SEPARATOR));
|
||||
share.setPermissions(READ_ONLY);
|
||||
|
||||
getStorageManager().saveShare(share);
|
||||
|
|
Loading…
Reference in a new issue