pull/32/head
kunfei 5 years ago
parent 993f7fb7f0
commit 9a5758634c
  1. 4
      app/src/main/java/io/legado/app/receiver/MediaButtonReceiver.kt

@ -45,13 +45,11 @@ class MediaButtonReceiver : BroadcastReceiver() {
} }
private fun readAloud(context: Context) { private fun readAloud(context: Context) {
ActivityHelp.isExist(ReadBookActivity::class.java).let { if (!ActivityHelp.isExist(ReadBookActivity::class.java)) {
if (!it) {
val intent = Intent(context, ReadBookActivity::class.java) val intent = Intent(context, ReadBookActivity::class.java)
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
context.startActivity(intent) context.startActivity(intent)
} }
}
postEvent(Bus.READ_ALOUD, true) postEvent(Bus.READ_ALOUD, true)
} }
} }

Loading…
Cancel
Save