mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-19 22:50:05 +08:00
fix
This commit is contained in:
parent
c06df8d251
commit
da682b1dd4
@ -71,8 +71,9 @@ class BaseService {
|
||||
|
||||
fun changeState(s: State, msg: String? = null) {
|
||||
if (state == s && msg == null) return
|
||||
binder.stateChanged(s, msg)
|
||||
state = s
|
||||
DataStore.serviceState = s
|
||||
binder.stateChanged(s, msg)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ import moe.matsuri.nb4a.TempDatabase
|
||||
|
||||
object DataStore : OnPreferenceDataStoreChangeListener {
|
||||
|
||||
// share service state in main process
|
||||
// share service state in main & bg process
|
||||
@Volatile
|
||||
var serviceState = BaseService.State.Idle
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user