pull/90/head^2
parent
7712df964e
commit
5e6ddf402b
@ -1,14 +1,18 @@ |
||||
package io.legado.app.ui.book.arrange |
||||
|
||||
import android.app.Application |
||||
import io.legado.app.App |
||||
import io.legado.app.base.BaseViewModel |
||||
import io.legado.app.data.entities.Book |
||||
|
||||
|
||||
class ArrangeBookViewModel(application: Application) : BaseViewModel(application) { |
||||
|
||||
|
||||
fun deleteBook(vararg bookUrl: String) { |
||||
|
||||
fun deleteBook(vararg book: Book) { |
||||
execute { |
||||
App.db.bookDao().delete() |
||||
} |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue