diff --git a/app/src/main/java/io/legado/app/data/AppDatabase.kt b/app/src/main/java/io/legado/app/data/AppDatabase.kt index 877054299..630763064 100644 --- a/app/src/main/java/io/legado/app/data/AppDatabase.kt +++ b/app/src/main/java/io/legado/app/data/AppDatabase.kt @@ -12,7 +12,7 @@ import io.legado.app.data.entities.* @Database( entities = [Book::class, BookGroup::class, BookSource::class, BookChapter::class, ReplaceRule::class, SearchBook::class, - SearchKeyword::class, SourceCookie::class, RssSourceDao::class], + SearchKeyword::class, SourceCookie::class, RssSource::class], version = 1, exportSchema = true ) 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 f18df8b03..99650060c 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 @@ -1,9 +1,12 @@ package io.legado.app.data.entities +import android.os.Parcelable import androidx.room.Entity +import kotlinx.android.parcel.Parcelize +@Parcelize @Entity(tableName = "rssSources") data class RssSource( var sourceName: String, var enabled: Boolean = true -) \ No newline at end of file +) : Parcelable \ No newline at end of file