pull/32/head
kunfei 5 years ago
parent b1bbac7b25
commit 1a75f5a593
  1. 2
      app/src/main/java/io/legado/app/data/AppDatabase.kt
  2. 5
      app/src/main/java/io/legado/app/data/entities/RssSource.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
)

@ -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
)
) : Parcelable
Loading…
Cancel
Save