projects
/
pub
/
Android
/
ownCloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Grant that notifications of finished downloads can be removed from notification are...
[pub/Android/ownCloud.git]
/
src
/
com
/
owncloud
/
android
/
operations
/
CreateShareOperation.java
diff --git
a/src/com/owncloud/android/operations/CreateShareOperation.java
b/src/com/owncloud/android/operations/CreateShareOperation.java
index
1a89f1c
..
7277b3a
100644
(file)
--- a/
src/com/owncloud/android/operations/CreateShareOperation.java
+++ b/
src/com/owncloud/android/operations/CreateShareOperation.java
@@
-92,12
+92,10
@@
public class CreateShareOperation extends SyncOperation {
OCShare share = (OCShare) result.getData().get(0);
// Update DB with the response
OCShare share = (OCShare) result.getData().get(0);
// Update DB with the response
+ share.setPath(mPath);
if (mPath.endsWith(FileUtils.PATH_SEPARATOR)) {
if (mPath.endsWith(FileUtils.PATH_SEPARATOR)) {
- share.setPath(mPath.substring(0, mPath.length()-1));
share.setIsFolder(true);
share.setIsFolder(true);
-
} else {
} else {
- share.setPath(mPath);
share.setIsFolder(false);
}
share.setPermissions(mPermissions);
share.setIsFolder(false);
}
share.setPermissions(mPermissions);