mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 05:05:20 +00:00
Manually disable location (#347)
* manually disable location, design needs to be fixed * fix ui
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user