pull/32/head
kunfei 5 years ago
parent db88e7ebec
commit 543b3d51c7
  1. 9
      app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudDialog.kt
  2. 1
      app/src/main/res/layout/dialog_read_aloud.xml

@ -11,7 +11,9 @@ import io.legado.app.R
import io.legado.app.constant.Bus import io.legado.app.constant.Bus
import io.legado.app.service.ReadAloudService import io.legado.app.service.ReadAloudService
import io.legado.app.ui.readbook.Help import io.legado.app.ui.readbook.Help
import io.legado.app.ui.readbook.ReadBookActivity
import io.legado.app.utils.observeEvent import io.legado.app.utils.observeEvent
import kotlinx.android.synthetic.main.activity_read_book.*
import kotlinx.android.synthetic.main.dialog_read_aloud.* import kotlinx.android.synthetic.main.dialog_read_aloud.*
import org.jetbrains.anko.sdk27.listeners.onClick import org.jetbrains.anko.sdk27.listeners.onClick
@ -53,6 +55,13 @@ class ReadAloudDialog : DialogFragment() {
} }
private fun initOnClick() { private fun initOnClick() {
iv_menu.onClick {
val activity = activity
if (activity is ReadBookActivity) {
activity.read_menu.runMenuIn()
dismiss()
}
}
iv_stop.onClick { ReadAloudService.stop(requireContext()) } iv_stop.onClick { ReadAloudService.stop(requireContext()) }
} }

@ -149,7 +149,6 @@
android:button="@null" android:button="@null"
android:drawableRight="?android:attr/listChoiceIndicatorMultiple" android:drawableRight="?android:attr/listChoiceIndicatorMultiple"
android:drawableEnd="?android:attr/listChoiceIndicatorMultiple" android:drawableEnd="?android:attr/listChoiceIndicatorMultiple"
android:clickable="false"
android:text="@string/flow_sys" android:text="@string/flow_sys"
android:contentDescription="@string/flow_sys" android:contentDescription="@string/flow_sys"
tools:ignore="RtlHardcoded" /> tools:ignore="RtlHardcoded" />

Loading…
Cancel
Save