From 9f76fcd9c180fd263e37408a0e832da559cc3d5b Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 2 Dec 2019 22:29:10 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/ui/widget/page/PageView.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/widget/page/PageView.kt b/app/src/main/java/io/legado/app/ui/widget/page/PageView.kt index 5ac785fbf..125654f5c 100644 --- a/app/src/main/java/io/legado/app/ui/widget/page/PageView.kt +++ b/app/src/main/java/io/legado/app/ui/widget/page/PageView.kt @@ -6,12 +6,14 @@ import android.graphics.Canvas import android.util.AttributeSet import android.view.MotionEvent import android.widget.FrameLayout +import io.legado.app.constant.Bus import io.legado.app.help.ReadBookConfig import io.legado.app.service.help.ReadBook import io.legado.app.ui.widget.page.curl.CurlView import io.legado.app.ui.widget.page.delegate.* import io.legado.app.utils.activity import io.legado.app.utils.getPrefInt +import io.legado.app.utils.postEvent class PageView(context: Context, attrs: AttributeSet) : FrameLayout(context, attrs), @@ -44,7 +46,7 @@ class PageView(context: Context, attrs: AttributeSet) : override fun onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int) { super.onSizeChanged(w, h, oldw, oldh) - + postEvent(Bus.UP_CONFIG, true) pageDelegate?.setViewSize(w, h) }