fix current location button
This commit is contained in:
parent
ee3f63c327
commit
9ff3011514
1 changed files with 2 additions and 2 deletions
|
@ -21,8 +21,8 @@ class TriggerLocation(injector: HasAndroidInjector) : Trigger(injector) {
|
||||||
var lastMode = InputLocationMode.Mode.INSIDE
|
var lastMode = InputLocationMode.Mode.INSIDE
|
||||||
private val buttonAction = Runnable {
|
private val buttonAction = Runnable {
|
||||||
locationDataContainer.lastLocation?.let {
|
locationDataContainer.lastLocation?.let {
|
||||||
latitude.value = it.latitude
|
latitude.setValue(it.latitude)
|
||||||
longitude.value = it.longitude
|
longitude.setValue(it.longitude)
|
||||||
aapsLogger.debug(LTag.AUTOMATION, String.format("Grabbed location: %f %f", latitude.value, longitude.value))
|
aapsLogger.debug(LTag.AUTOMATION, String.format("Grabbed location: %f %f", latitude.value, longitude.value))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue