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

Commit 3087a4cc authored by Andy Scherzinger's avatar Andy Scherzinger Committed by GitHub
Browse files

Merge pull request #89 from nextcloud/hardenShareType

hardening share type detection, return "not shared" if type is unknown
parents d0817f73 1589e281
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ package com.owncloud.android.lib.resources.shares;
 *  3 - Shared by public link
 *  4 - Shared by e-mail
 *  5 - Shared by contact
 *  6 - Shared by federation
 *  
 * @author masensio
 *
@@ -75,7 +76,8 @@ public enum ShareType {
            return CONTACT;
        case 6:
            return FEDERATED;
        default:
            return NO_SHARED;
        }
    }
        return null;
}
};
 No newline at end of file