Move away KEY_OPERATING_CHANNEL

This commit is contained in:
Mygod
2019-02-01 16:46:00 +08:00
parent 9352f10e6c
commit 6a7a16a0c7
3 changed files with 11 additions and 10 deletions

View File

@@ -61,10 +61,10 @@ class RepeaterManager(private val parent: TetheringFragment) : Manager(), Servic
}
var oc: CharSequence
@Bindable get() {
val oc = app.operatingChannel
val oc = RepeaterService.operatingChannel
return if (oc in 1..165) oc.toString() else ""
}
set(value) = app.pref.edit().putString(App.KEY_OPERATING_CHANNEL, value.toString()).apply()
set(value) = app.pref.edit().putString(RepeaterService.KEY_OPERATING_CHANNEL, value.toString()).apply()
fun onStatusChanged() {
notifyPropertyChanged(BR.switchEnabled)