|
|
@ -14,6 +14,7 @@ import io.legado.app.data.entities.Bookmark |
|
|
|
import io.legado.app.databinding.ViewBookPageBinding |
|
|
|
import io.legado.app.databinding.ViewBookPageBinding |
|
|
|
import io.legado.app.help.config.ReadBookConfig |
|
|
|
import io.legado.app.help.config.ReadBookConfig |
|
|
|
import io.legado.app.help.config.ReadTipConfig |
|
|
|
import io.legado.app.help.config.ReadTipConfig |
|
|
|
|
|
|
|
import io.legado.app.help.coroutine.Coroutine |
|
|
|
import io.legado.app.model.ReadBook |
|
|
|
import io.legado.app.model.ReadBook |
|
|
|
import io.legado.app.ui.book.read.ReadBookActivity |
|
|
|
import io.legado.app.ui.book.read.ReadBookActivity |
|
|
|
import io.legado.app.ui.book.read.page.entities.TextPage |
|
|
|
import io.legado.app.ui.book.read.page.entities.TextPage |
|
|
@ -66,9 +67,15 @@ class PageView(context: Context) : FrameLayout(context) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private fun upBitmap() { |
|
|
|
private fun upBitmap() { |
|
|
|
|
|
|
|
post { |
|
|
|
|
|
|
|
Coroutine.async { |
|
|
|
|
|
|
|
screenshot() |
|
|
|
|
|
|
|
}.onSuccess { |
|
|
|
bitmap?.recycle() |
|
|
|
bitmap?.recycle() |
|
|
|
bitmap = screenshot() |
|
|
|
bitmap = screenshot() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun upStyle() = binding.run { |
|
|
|
fun upStyle() = binding.run { |
|
|
|
upTipStyle() |
|
|
|
upTipStyle() |
|
|
|