diff --git a/app/src/main/java/io/legado/app/data/dao/BookSourceDao.kt b/app/src/main/java/io/legado/app/data/dao/BookSourceDao.kt index 7b3f4e275..d8f62d9b8 100644 --- a/app/src/main/java/io/legado/app/data/dao/BookSourceDao.kt +++ b/app/src/main/java/io/legado/app/data/dao/BookSourceDao.kt @@ -1,10 +1,7 @@ package io.legado.app.data.dao import androidx.paging.DataSource -import androidx.room.Dao -import androidx.room.Insert -import androidx.room.OnConflictStrategy -import androidx.room.Query +import androidx.room.* import io.legado.app.data.entities.BookSource @Dao @@ -18,4 +15,7 @@ interface BookSourceDao { @Insert(onConflict = OnConflictStrategy.REPLACE) fun insert(bookSource: BookSource): Long + + @Update + fun update(vararg bookSource: BookSource) } \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/ui/main/booksource/BookSourceAdapter.kt b/app/src/main/java/io/legado/app/ui/main/booksource/BookSourceAdapter.kt index 1b2c793ff..c74db41c9 100644 --- a/app/src/main/java/io/legado/app/ui/main/booksource/BookSourceAdapter.kt +++ b/app/src/main/java/io/legado/app/ui/main/booksource/BookSourceAdapter.kt @@ -60,7 +60,7 @@ class BookSourceAdapter : PagedListAdapter + android:gravity="center_vertical"> \ No newline at end of file