Skip to content

Commit

Permalink
Fix the condition (#386)
Browse files Browse the repository at this point in the history
* SCMI-112253 When no location in the bundle, we are still doing a search and showing results

* SCMI-112253 Only add the default location if permission not granted

* SCMI-112253 Only add the default location if permission not granted

* SCMI-112253 Use the exiting function

* SCMI-112253 I just wrote the opposite of what I wanted

---------

Co-authored-by: arturo.jimenez <arturo.jimenez@adevinta.com>
  • Loading branch information
artjimlop and arturo.jimenez committed Jan 10, 2024
1 parent 01255b9 commit f77114e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ class LocationPickerActivity :
}

private fun setDefaultLocation() {
if (PermissionUtils.isLocationPermissionGranted(applicationContext)) {
if (!PermissionUtils.isLocationPermissionGranted(applicationContext)) {
currentLocation = Location(getString(R.string.leku_network_resource))
currentLocation?.latitude = 0.0
currentLocation?.longitude = 0.0
Expand Down

0 comments on commit f77114e

Please sign in to comment.