Fixed local state of file after a successful reupload
[pub/Android/ownCloud.git] / src / com / owncloud / android / operations / CreateShareOperation.java
index 3376a9e..bf462a2 100644 (file)
@@ -94,11 +94,11 @@ public class CreateShareOperation extends SyncOperation {
                 // Update DB with the response
                 if (mPath.endsWith(FileUtils.PATH_SEPARATOR)) {
                     share.setPath(mPath.substring(0, mPath.length()-1));
                 // Update DB with the response
                 if (mPath.endsWith(FileUtils.PATH_SEPARATOR)) {
                     share.setPath(mPath.substring(0, mPath.length()-1));
-                    share.setIsDirectory(true);
+                    share.setIsFolder(true);
                     
                 } else {
                     share.setPath(mPath);
                     
                 } else {
                     share.setPath(mPath);
-                    share.setIsDirectory(false);
+                    share.setIsFolder(false);
                 }
                 share.setPermissions(mPermissions);
                 
                 }
                 share.setPermissions(mPermissions);