kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
refactor: remove provideLocationCheckbox gps_enabled requirement
rodzic
372f33cd9e
commit
4359ec8779
|
@ -170,7 +170,7 @@ class SettingsFragment : ScreenFragment("Settings"), Logging {
|
||||||
if (connected == MeshService.ConnectionState.DISCONNECTED)
|
if (connected == MeshService.ConnectionState.DISCONNECTED)
|
||||||
model.setOwner("")
|
model.setOwner("")
|
||||||
|
|
||||||
if (requireContext().hasGps() && model.config.position.gpsEnabled) {
|
if (requireContext().hasGps()) {
|
||||||
binding.provideLocationCheckbox.isEnabled = true
|
binding.provideLocationCheckbox.isEnabled = true
|
||||||
} else {
|
} else {
|
||||||
binding.provideLocationCheckbox.isChecked = false
|
binding.provideLocationCheckbox.isChecked = false
|
||||||
|
|
Ładowanie…
Reference in New Issue