diff --git a/service/src/main/kotlin/org/microg/nlp/service/GeocodeService.kt b/service/src/main/kotlin/org/microg/nlp/service/GeocodeService.kt index 9ee3f8e..3d136da 100644 --- a/service/src/main/kotlin/org/microg/nlp/service/GeocodeService.kt +++ b/service/src/main/kotlin/org/microg/nlp/service/GeocodeService.kt @@ -154,7 +154,7 @@ class GeocodeServiceImpl(private val context: Context, private val lifecycle: Li return@launchWhenStarted callback.onStatus(STATUS_PERMISSION_ERROR) fuser.reset() fuser.bind() - callback.onStatus(Constants.STATUS_OK) + callback.onStatus(STATUS_OK) } } @@ -164,7 +164,7 @@ class GeocodeServiceImpl(private val context: Context, private val lifecycle: Li lifecycleScope.launchWhenStarted { if (extras.checkPermission("org.microg.nlp.SERVICE_ADMIN") != PERMISSION_GRANTED) return@launchWhenStarted callback.onStrings(STATUS_PERMISSION_ERROR, null) - callback.onStrings(Constants.STATUS_OK, Preferences(context).geocoderBackends.toList()) + callback.onStrings(STATUS_OK, Preferences(context).geocoderBackends.toList()) } } @@ -177,7 +177,9 @@ class GeocodeServiceImpl(private val context: Context, private val lifecycle: Li if (backends == null) return@launchWhenStarted callback.onStatus(STATUS_INVALID_ARGS) Preferences(context).geocoderBackends = backends.toSet() - callback.onStatus(Constants.STATUS_OK) + fuser.reset() + fuser.bind() + callback.onStatus(STATUS_OK) } } diff --git a/service/src/main/kotlin/org/microg/nlp/service/LocationService.kt b/service/src/main/kotlin/org/microg/nlp/service/LocationService.kt index 630171a..8b3f8fd 100644 --- a/service/src/main/kotlin/org/microg/nlp/service/LocationService.kt +++ b/service/src/main/kotlin/org/microg/nlp/service/LocationService.kt @@ -306,6 +306,8 @@ class LocationServiceImpl(private val context: Context, private val lifecycle: L if (backends == null) return@launchWhenStarted callback.onStatus(STATUS_INVALID_ARGS) Preferences(context).locationBackends = backends.toSet() + fuser.reset() + fuser.bind() callback.onStatus(STATUS_OK) } }