fix(location): remove disable option and add manual UI

- Add ConfigFlag.NO_DISABLE_KEY to locationSearchProvider config to prevent
  'Disable' (null) option which caused fallback to OSM.
- Add manual UI controls to BetterLocationRoot.kt for Location Search Provider
  and Google Maps API Key, as automatic UI generation was not present on this page.
- Add ConfigSelector and ConfigInput helpers to BetterLocationRoot.kt.
- Ensure API key input is hidden/masked in the UI list.
This commit is contained in:
daplugg23
2026-02-05 17:13:44 -06:00
parent a4de81aaf6
commit d485718245
2 changed files with 49 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ 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 locationSearchProvider = unique("location_search_provider", "osm", "google_maps") { addFlags(ConfigFlag.NO_DISABLE_KEY) }
val googleMapsApiKey = string("google_maps_api_key") { addFlags(ConfigFlag.SENSITIVE) }
}