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

Unverified Commit 014c0c43 authored by AndyScherzinger's avatar AndyScherzinger
Browse files

hardening share type detection, return not shared if type is unknown

parent d0817f73
Loading
Loading
Loading
Loading
+3 −1
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