pull/34/head
kunfei 5 years ago
parent 7f6302d80d
commit d6e0c730db
  1. 1
      app/src/main/java/io/legado/app/service/BaseReadAloudService.kt
  2. 21
      app/src/main/java/io/legado/app/service/HttpReadAloudService.kt
  3. 1
      app/src/main/java/io/legado/app/service/TTSReadAloudService.kt

@ -138,6 +138,7 @@ abstract class BaseReadAloudService : BaseService(),
isRun = false isRun = false
unregisterReceiver(broadcastReceiver) unregisterReceiver(broadcastReceiver)
postEvent(Bus.ALOUD_STATE, Status.STOP) postEvent(Bus.ALOUD_STATE, Status.STOP)
upMediaSessionPlaybackState(PlaybackStateCompat.STATE_STOPPED)
} }
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int { override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {

@ -0,0 +1,21 @@
package io.legado.app.service
class HttpReadAloudService : BaseReadAloudService() {
override fun newReadAloud(dataKey: String?, play: Boolean) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
override fun upSpeechRate(reset: Boolean) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
override fun prevP() {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
override fun nextP() {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}

@ -41,7 +41,6 @@ class TTSReadAloudService : BaseReadAloudService(), TextToSpeech.OnInitListener
override fun onDestroy() { override fun onDestroy() {
super.onDestroy() super.onDestroy()
upMediaSessionPlaybackState(PlaybackStateCompat.STATE_STOPPED)
clearTTS() clearTTS()
} }

Loading…
Cancel
Save