From b66fd6f6d3de554a88ba076edf662c11497c3801 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 17 Feb 2020 21:42:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/legado/app/ui/book/read/page/delegate/PageDelegate.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/delegate/PageDelegate.kt b/app/src/main/java/io/legado/app/ui/book/read/page/delegate/PageDelegate.kt index 567ba679d..db7008dd6 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/delegate/PageDelegate.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/delegate/PageDelegate.kt @@ -14,7 +14,6 @@ import io.legado.app.help.AppConfig import io.legado.app.ui.book.read.page.ContentView import io.legado.app.ui.book.read.page.PageView import io.legado.app.utils.screenshot -import io.legado.app.utils.snackbar import kotlin.math.abs abstract class PageDelegate(protected val pageView: PageView) { @@ -48,7 +47,7 @@ abstract class PageDelegate(protected val pageView: PageView) { protected var atBottom: Boolean = false private val snackBar: Snackbar by lazy { - pageView.snackbar("") + Snackbar.make(pageView, "", Snackbar.LENGTH_SHORT) } private val scroller: Scroller by lazy {