fix current location button

This commit is contained in:
Milos Kozak 2020-07-15 20:06:45 +02:00
parent ee3f63c327
commit 9ff3011514

View file

@ -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))
} }
} }