Manually disable location (#347)

* manually disable location, design needs to be fixed

* fix ui
This commit is contained in:
callebtc
2025-08-29 22:09:44 +02:00
committed by GitHub
parent b1234ff548
commit 0aecaf50f8
3 changed files with 210 additions and 79 deletions
@@ -61,6 +61,17 @@ class DataManager(private val context: Context) {
prefs.edit().remove("last_geohash_channel").apply()
Log.d(TAG, "Cleared last geohash channel")
}
// MARK: - Location Services State
fun saveLocationServicesEnabled(enabled: Boolean) {
prefs.edit().putBoolean("location_services_enabled", enabled).apply()
Log.d(TAG, "Saved location services enabled state: $enabled")
}
fun isLocationServicesEnabled(): Boolean {
return prefs.getBoolean("location_services_enabled", false)
}
// MARK: - Channel Data Management