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

Unverified Commit efd9cc75 authored by Mario Danic's avatar Mario Danic Committed by AndyScherzinger
Browse files

Better favourite

parent 00c4d087
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -25,7 +25,6 @@
package com.owncloud.android.lib.common.network;

import android.net.Uri;
import android.util.Log;

import com.owncloud.android.lib.common.utils.Log_OC;

@@ -196,9 +195,13 @@ public class WebdavEntry {

            // OC favorite property <oc:favorite>
            prop = propSet.get(EXTENDED_PROPERTY_FAVORITE,  Namespace.getNamespace(NAMESPACE_OC));
            Log.d("MARIO", (String) prop.getValue());
            if (prop != null) {
                mIsFavorite = Boolean.parseBoolean((String) prop.getValue());
                String favoriteValue = (String) prop.getValue();
                if (favoriteValue.equals("1")) {
                    mIsFavorite = true;
                } else {
                    mIsFavorite = false;
                }
            } else {
                mIsFavorite = false;
            }