|
|
@ -60,6 +60,7 @@ abstract class BaseReadAloudService : BaseService(), |
|
|
|
override fun onCreate() { |
|
|
|
override fun onCreate() { |
|
|
|
super.onCreate() |
|
|
|
super.onCreate() |
|
|
|
isRun = true |
|
|
|
isRun = true |
|
|
|
|
|
|
|
pause = false |
|
|
|
audioManager = getSystemService(Context.AUDIO_SERVICE) as AudioManager |
|
|
|
audioManager = getSystemService(Context.AUDIO_SERVICE) as AudioManager |
|
|
|
mFocusRequest = MediaHelp.getFocusRequest(this) |
|
|
|
mFocusRequest = MediaHelp.getFocusRequest(this) |
|
|
|
mediaSessionCompat = MediaSessionCompat(this, "readAloud") |
|
|
|
mediaSessionCompat = MediaSessionCompat(this, "readAloud") |
|
|
|