feat(location): implement location search provider toggle

Add config properties for locationSearchProvider (osm/google_maps) and
googleMapsApiKey to BetterLocationConfig. Modify ChooseLocationDialog
to switch between OpenStreetMap (MAPNIK) and Google Maps tile sources
based on user preference.

- Add locationSearchProvider unique config property
- Add googleMapsApiKey string config property (SENSITIVE flag)
- Add XYTileSource for Google Maps tiles in AlertDialogs
- Pass locationSearchProvider from BetterLocationRoot to dialog

Translation keys already existed in all 28 language files.
This commit is contained in:
daplugg23
2026-02-05 15:30:14 -06:00
parent a0728fa951
commit a8e0c53be0
3 changed files with 23 additions and 4 deletions

View File

@@ -28,6 +28,8 @@ class Global : ConfigContainer() {
val spoofBatteryLevel = string("spoof_battery_level") { requireRestart(); inputCheck = { it.isEmpty() || it.toIntOrNull() in 0..100 } }
val spoofHeadphones = boolean("spoof_headphones") { requireRestart() }
val showBatteryLevel = boolean("show_battery_level") { requireRestart() }
val locationSearchProvider = unique("location_search_provider", "osm", "google_maps")
val googleMapsApiKey = string("google_maps_api_key") { addFlags(ConfigFlag.SENSITIVE) }
}
inner class MediaUploadQualityConfig : ConfigContainer() {