|
|
@ -26,7 +26,6 @@ class AudioPlayViewModel(application: Application) : BaseViewModel(application) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
App.db.bookDao().lastReadBook |
|
|
|
App.db.bookDao().lastReadBook |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
AudioPlay.book?.let { book -> |
|
|
|
AudioPlay.book?.let { book -> |
|
|
|
AudioPlay.titleData.postValue(book.name) |
|
|
|
AudioPlay.titleData.postValue(book.name) |
|
|
|
AudioPlay.coverData.postValue(book.getDisplayCover()) |
|
|
|
AudioPlay.coverData.postValue(book.getDisplayCover()) |
|
|
@ -52,6 +51,7 @@ class AudioPlayViewModel(application: Application) : BaseViewModel(application) |
|
|
|
saveRead() |
|
|
|
saveRead() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private fun loadBookInfo( |
|
|
|
private fun loadBookInfo( |
|
|
|
book: Book, |
|
|
|
book: Book, |
|
|
|