fix proguard issue with NotificationTypeAdapter (#1129)
parent
91492c4008
commit
612b90d93a
@ -1,18 +0,0 @@ |
||||
package com.keylesspalace.tusky.json |
||||
|
||||
import com.google.gson.JsonDeserializationContext |
||||
import com.google.gson.JsonDeserializer |
||||
import com.google.gson.JsonElement |
||||
import com.google.gson.JsonParseException |
||||
import com.keylesspalace.tusky.entity.Notification |
||||
|
||||
import java.lang.reflect.Type |
||||
|
||||
class NotificationTypeAdapter : JsonDeserializer<Notification.Type> { |
||||
|
||||
@Throws(JsonParseException::class) |
||||
override fun deserialize(json: JsonElement, typeOfT: Type, context: JsonDeserializationContext): Notification.Type { |
||||
return Notification.Type.byString(json.asString) |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue