feat: 优化

pull/264/head
gedoor 5 years ago
parent e58a80156d
commit 23e84678db
  1. 9
      app/src/main/java/io/legado/app/service/AudioPlayService.kt
  2. 2
      app/src/main/java/io/legado/app/service/HttpReadAloudService.kt

@ -96,12 +96,9 @@ class AudioPlayService : BaseService(),
IntentAction.adjustSpeed -> upSpeed(intent.getFloatExtra("adjust", 1f)) IntentAction.adjustSpeed -> upSpeed(intent.getFloatExtra("adjust", 1f))
IntentAction.addTimer -> addTimer() IntentAction.addTimer -> addTimer()
IntentAction.setTimer -> setTimer(intent.getIntExtra("minute", 0)) IntentAction.setTimer -> setTimer(intent.getIntExtra("minute", 0))
IntentAction.adjustProgress -> adjustProgress( IntentAction.adjustProgress -> {
intent.getIntExtra( adjustProgress(intent.getIntExtra("position", position))
"position", }
position
)
)
else -> stopSelf() else -> stopSelf()
} }
} }

@ -206,7 +206,7 @@ class HttpReadAloudService : BaseReadAloudService(),
} else { } else {
nextChapter() nextChapter()
} }
}, 100) }, 50)
return true return true
} }

Loading…
Cancel
Save