refactor: remove provideLocationCheckbox gps_enabled requirement

This commit is contained in:
andrekir committed 2023-02-20 21:34:31 -03:00
1 parent 372f33cd9e
commit 4359ec8779
1 file changed
+1 -1
@@ -170,7 +170,7 @@ class SettingsFragment : ScreenFragment("Settings"), Logging {
if (connected == MeshService.ConnectionState.DISCONNECTED)
model.setOwner("")
if (requireContext().hasGps() && model.config.position.gpsEnabled) {
if (requireContext().hasGps()) {
binding.provideLocationCheckbox.isEnabled = true
} else {
binding.provideLocationCheckbox.isChecked = false