From 7fee8d0952262ee2bfde764b90e74c072811cda0 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 15 Aug 2019 22:38:52 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/readbook/ReadBottomMenu.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/readbook/ReadBottomMenu.kt b/app/src/main/java/io/legado/app/ui/readbook/ReadBottomMenu.kt index ba13a07aa..461396919 100644 --- a/app/src/main/java/io/legado/app/ui/readbook/ReadBottomMenu.kt +++ b/app/src/main/java/io/legado/app/ui/readbook/ReadBottomMenu.kt @@ -5,10 +5,12 @@ import android.util.AttributeSet import android.widget.FrameLayout import android.widget.SeekBar import io.legado.app.R +import io.legado.app.service.ReadAloudService import io.legado.app.utils.gone import io.legado.app.utils.visible import kotlinx.android.synthetic.main.view_read_bottom_menu.view.* import org.jetbrains.anko.sdk27.listeners.onClick +import org.jetbrains.anko.sdk27.listeners.onLongClick class ReadBottomMenu : FrameLayout { @@ -69,7 +71,8 @@ class ReadBottomMenu : FrameLayout { //朗读 fab_read_aloud.onClick { callback?.onMediaButton() } //长按停止朗读 - fab_read_aloud.onClick { + fab_read_aloud.onLongClick { + ReadAloudService.stop(context) true }