优化
This commit is contained in:
@@ -44,10 +44,15 @@ class AudioPlayService : BaseService(),
|
|||||||
Player.Listener {
|
Player.Listener {
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
@JvmStatic
|
||||||
var isRun = false
|
var isRun = false
|
||||||
private set
|
private set
|
||||||
|
|
||||||
|
@JvmStatic
|
||||||
var pause = true
|
var pause = true
|
||||||
private set
|
private set
|
||||||
|
|
||||||
|
@JvmStatic
|
||||||
var timeMinute: Int = 0
|
var timeMinute: Int = 0
|
||||||
private set
|
private set
|
||||||
var url: String = ""
|
var url: String = ""
|
||||||
|
|||||||
@@ -37,10 +37,15 @@ abstract class BaseReadAloudService : BaseService(),
|
|||||||
AudioManager.OnAudioFocusChangeListener {
|
AudioManager.OnAudioFocusChangeListener {
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
@JvmStatic
|
||||||
var isRun = false
|
var isRun = false
|
||||||
private set
|
private set
|
||||||
|
|
||||||
|
@JvmStatic
|
||||||
var timeMinute: Int = 0
|
var timeMinute: Int = 0
|
||||||
private set
|
private set
|
||||||
|
|
||||||
|
@JvmStatic
|
||||||
var pause = true
|
var pause = true
|
||||||
private set
|
private set
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user