|
|
@ -21,6 +21,7 @@ import io.legado.app.data.entities.BookChapter |
|
|
|
import io.legado.app.data.entities.BookSource |
|
|
|
import io.legado.app.data.entities.BookSource |
|
|
|
import io.legado.app.databinding.ActivityBookInfoBinding |
|
|
|
import io.legado.app.databinding.ActivityBookInfoBinding |
|
|
|
import io.legado.app.databinding.DialogEditTextBinding |
|
|
|
import io.legado.app.databinding.DialogEditTextBinding |
|
|
|
|
|
|
|
import io.legado.app.help.config.AppConfig |
|
|
|
import io.legado.app.lib.dialogs.alert |
|
|
|
import io.legado.app.lib.dialogs.alert |
|
|
|
import io.legado.app.lib.theme.backgroundColor |
|
|
|
import io.legado.app.lib.theme.backgroundColor |
|
|
|
import io.legado.app.lib.theme.bottomBackground |
|
|
|
import io.legado.app.lib.theme.bottomBackground |
|
|
@ -247,8 +248,10 @@ class BookInfoActivity : |
|
|
|
|
|
|
|
|
|
|
|
private fun showCover(book: Book) { |
|
|
|
private fun showCover(book: Book) { |
|
|
|
binding.ivCover.load(book.getDisplayCover(), book.name, book.author, false, book.origin) |
|
|
|
binding.ivCover.load(book.getDisplayCover(), book.name, book.author, false, book.origin) |
|
|
|
BookCover.loadBlur(this, book.getDisplayCover()) |
|
|
|
if(!AppConfig.isEInkMode) { |
|
|
|
.into(binding.bgBook) |
|
|
|
BookCover.loadBlur(this, book.getDisplayCover()) |
|
|
|
|
|
|
|
.into(binding.bgBook) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private fun upLoading(isLoading: Boolean, chapterList: List<BookChapter>? = null) { |
|
|
|
private fun upLoading(isLoading: Boolean, chapterList: List<BookChapter>? = null) { |
|
|
|