Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8061b688 authored by Mario Danic's avatar Mario Danic
Browse files

Test



Signed-off-by: default avatarMario Danic <mario@lovelyhq.com>
parent e362ac08
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -43,10 +43,12 @@ import java.io.IOException;
public class ToggleFavoriteOperation extends RemoteOperation {
    private boolean makeItFavorited;
    private String filePath;
    private String userID;

    public ToggleFavoriteOperation(boolean makeItFavorited, String filePath) {
    public ToggleFavoriteOperation(boolean makeItFavorited, String filePath, String userID) {
        this.makeItFavorited = makeItFavorited;
        this.filePath = filePath;
        this.userID = userID;
    }

    @Override
@@ -69,7 +71,7 @@ public class ToggleFavoriteOperation extends RemoteOperation {
        int pos = filePath.lastIndexOf('/') + 1;
        filePath = filePath.substring(0, pos) + Uri.encode(filePath.substring(pos));

        String fullFilePath = webDavUrl + "/files/" + client.getCredentials().getUsername() + filePath;
        String fullFilePath = webDavUrl + "/files/" + userID + filePath;

        try {
            propPatchMethod = new PropPatchMethod(fullFilePath,