|
|
|
@ -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) { |
|
|
|
|