From 4e4c39e58e353a81e6906f549798817d1e0c26ca Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Thu, 4 May 2017 16:25:04 +0200 Subject: [PATCH] added missing quotation marks in MediaTypeDeserializer --- .../main/java/com/keylesspalace/tusky/entity/Status.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/entity/Status.java b/app/src/main/java/com/keylesspalace/tusky/entity/Status.java index 200071905..c98ebfa5b 100644 --- a/app/src/main/java/com/keylesspalace/tusky/entity/Status.java +++ b/app/src/main/java/com/keylesspalace/tusky/entity/Status.java @@ -148,11 +148,11 @@ public class Status { public Type deserialize(JsonElement json, java.lang.reflect.Type classOfT, JsonDeserializationContext context) throws JsonParseException { switch(json.toString()) { - case "image": + case "\"image\"": return Type.IMAGE; - case "gifv": + case "\"gifv\"": return Type.GIFV; - case "video": + case "\"video\"": return Type.VIDEO; default: return Type.UNKNOWN;