@ -632,7 +632,7 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_boo
super.onDestroy()
mHandler.removeCallbacks(keepScreenRunnable)
textActionMenu?.dismiss()
page_view.pageDelegate?.onDestroy()
page_view.onDestroy()
}
override fun observeLiveBus() {
@ -70,6 +70,11 @@ class PageView(context: Context, attrs: AttributeSet) :
return pageDelegate?.onTouch(event) ?: super.onTouchEvent(event)
fun onDestroy() {
pageDelegate?.onDestroy()
curPage.cancelSelect()
fun fillPage(direction: PageDelegate.Direction) {
when (direction) {
PageDelegate.Direction.PREV -> {