mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
优化
This commit is contained in:
parent
1190f9032d
commit
fcdaad387d
@ -163,7 +163,9 @@ class AudioPlayService : BaseService(),
|
||||
private fun play() {
|
||||
if (useWakeLock) wakeLock.acquire(10 * 60 * 1000L /*10 minutes*/)
|
||||
upNotification()
|
||||
if (requestFocus()) {
|
||||
if (!requestFocus()) {
|
||||
return
|
||||
}
|
||||
execute(context = Main) {
|
||||
AudioPlay.status = Status.STOP
|
||||
postEvent(EventBus.AUDIO_STATE, Status.STOP)
|
||||
@ -189,7 +191,6 @@ class AudioPlayService : BaseService(),
|
||||
stopSelf()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 暂停播放
|
||||
|
Loading…
Reference in New Issue
Block a user