feat: 优化代码

pull/103/head
kunfei 5 years ago
parent be43148a2b
commit b66fd6f6d3
  1. 3
      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.ContentView
import io.legado.app.ui.book.read.page.PageView import io.legado.app.ui.book.read.page.PageView
import io.legado.app.utils.screenshot import io.legado.app.utils.screenshot
import io.legado.app.utils.snackbar
import kotlin.math.abs import kotlin.math.abs
abstract class PageDelegate(protected val pageView: PageView) { abstract class PageDelegate(protected val pageView: PageView) {
@ -48,7 +47,7 @@ abstract class PageDelegate(protected val pageView: PageView) {
protected var atBottom: Boolean = false protected var atBottom: Boolean = false
private val snackBar: Snackbar by lazy { private val snackBar: Snackbar by lazy {
pageView.snackbar("") Snackbar.make(pageView, "", Snackbar.LENGTH_SHORT)
} }
private val scroller: Scroller by lazy { private val scroller: Scroller by lazy {

Loading…
Cancel
Save