From 543b3d51c7d42a6b6ce2024878f7e25af20370fc Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 26 Aug 2019 11:05:23 +0800 Subject: [PATCH] up --- .../io/legado/app/ui/readbook/config/ReadAloudDialog.kt | 9 +++++++++ app/src/main/res/layout/dialog_read_aloud.xml | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudDialog.kt b/app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudDialog.kt index 4bc3e6335..41015b5f2 100644 --- a/app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudDialog.kt +++ b/app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudDialog.kt @@ -11,7 +11,9 @@ import io.legado.app.R import io.legado.app.constant.Bus import io.legado.app.service.ReadAloudService import io.legado.app.ui.readbook.Help +import io.legado.app.ui.readbook.ReadBookActivity import io.legado.app.utils.observeEvent +import kotlinx.android.synthetic.main.activity_read_book.* import kotlinx.android.synthetic.main.dialog_read_aloud.* import org.jetbrains.anko.sdk27.listeners.onClick @@ -53,6 +55,13 @@ class ReadAloudDialog : DialogFragment() { } private fun initOnClick() { + iv_menu.onClick { + val activity = activity + if (activity is ReadBookActivity) { + activity.read_menu.runMenuIn() + dismiss() + } + } iv_stop.onClick { ReadAloudService.stop(requireContext()) } } diff --git a/app/src/main/res/layout/dialog_read_aloud.xml b/app/src/main/res/layout/dialog_read_aloud.xml index 4d3849c6a..1e7a2c25b 100644 --- a/app/src/main/res/layout/dialog_read_aloud.xml +++ b/app/src/main/res/layout/dialog_read_aloud.xml @@ -149,7 +149,6 @@ android:button="@null" android:drawableRight="?android:attr/listChoiceIndicatorMultiple" android:drawableEnd="?android:attr/listChoiceIndicatorMultiple" - android:clickable="false" android:text="@string/flow_sys" android:contentDescription="@string/flow_sys" tools:ignore="RtlHardcoded" />