From e8219eeb10fb4645bd25086743479f9366ce415b Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 3 Aug 2019 21:59:32 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/data/entities/RssSource.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/io/legado/app/data/entities/RssSource.kt b/app/src/main/java/io/legado/app/data/entities/RssSource.kt index 99650060c..1f5cba92a 100644 --- a/app/src/main/java/io/legado/app/data/entities/RssSource.kt +++ b/app/src/main/java/io/legado/app/data/entities/RssSource.kt @@ -2,11 +2,14 @@ package io.legado.app.data.entities import android.os.Parcelable import androidx.room.Entity +import androidx.room.PrimaryKey import kotlinx.android.parcel.Parcelize @Parcelize @Entity(tableName = "rssSources") data class RssSource( var sourceName: String, + @PrimaryKey + var sourceUrl: String, var enabled: Boolean = true ) : Parcelable \ No newline at end of file