diff options
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/model/Label.java')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/model/Label.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/model/Label.java b/app/src/main/java/it/niedermann/nextcloud/deck/model/Label.java index e709ae83a..6ae40a5ec 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/model/Label.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/model/Label.java @@ -9,9 +9,12 @@ import androidx.room.Entity; import androidx.room.ForeignKey; import androidx.room.Index; +import com.google.gson.annotations.JsonAdapter; + import java.io.Serializable; import it.niedermann.nextcloud.deck.DeckLog; +import it.niedermann.nextcloud.deck.api.json.JsonColorSerializer; import it.niedermann.nextcloud.deck.model.interfaces.AbstractRemoteEntity; import it.niedermann.nextcloud.deck.util.ColorUtil; @@ -29,6 +32,7 @@ import it.niedermann.nextcloud.deck.util.ColorUtil; public class Label extends AbstractRemoteEntity implements Serializable { private String title; + @JsonAdapter(JsonColorSerializer.class) @NonNull @ColumnInfo(defaultValue = "0") private Integer color; |