pull/71/head^2^2
kunfei 5 years ago
parent 39ce729ac2
commit 1eef27eba9
  1. 3
      app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt

@ -17,6 +17,7 @@ import io.legado.app.utils.getViewModel
import io.legado.app.utils.htmlFormat
import io.legado.app.utils.shareText
import kotlinx.android.synthetic.main.activity_rss_read.*
import kotlinx.coroutines.launch
import org.apache.commons.text.StringEscapeUtils
import org.jsoup.Jsoup
@ -103,6 +104,7 @@ class ReadRssActivity : VMBaseActivity<ReadRssViewModel>(R.layout.activity_rss_r
}
override fun upTtsMenu(isPlaying: Boolean) {
launch {
if (isPlaying) {
ttsMenuItem?.setIcon(R.drawable.ic_stop_black_24dp)
ttsMenuItem?.setTitle(R.string.aloud_stop)
@ -112,6 +114,7 @@ class ReadRssActivity : VMBaseActivity<ReadRssViewModel>(R.layout.activity_rss_r
}
DrawableUtils.setTint(ttsMenuItem?.icon, primaryTextColor)
}
}
override fun onKeyLongPress(keyCode: Int, event: KeyEvent?): Boolean {
when (keyCode) {

Loading…
Cancel
Save