0.3.9 - fix channel setting autobug and update to latest google libs

This commit is contained in:
geeksville 2020-04-15 07:49:39 -07:00
parent 55f9208f47
commit 7fa168ab2c
5 changed files with 29 additions and 16 deletions

View file

@ -73,7 +73,8 @@ class UIViewModel(app: Application) : AndroidViewModel(app), Logging {
fun setRadioConfig(c: MeshProtos.RadioConfig) {
debug("Setting new radio config!")
meshService?.radioConfig = c.toByteArray()
radioConfig.value = c
radioConfig.value =
c // Must be done after calling the service, so we will will properly throw if the service failed (and therefore not cache invalid new settings)
getPreferences(context).edit(commit = true) {
this.putString("channel-url", getChannel(c)!!.getChannelUrl().toString())