opensrp/fhircore

Update Geowidget to only show the Set Location dialog if no Locations to sync by have been selected.

Closed this issue · 0 comments

Describe the bug

  • If no locations have been selected for sync, the Geowidget module for EUSM shows a popup with the title Set Location.
  • The selected locations are then stored on the shared preferences.
    The Set Location should only** show ** if this entry cannot be found on the shared preference.
    • Right now it shows even if the locations have been selected and the map has no results to show because the locations do not have coordinates.

To Reproduce
Steps to reproduce the behaviour:

  1. Go to EUSM and select the locations to sync by.
  2. Select locations without any inventory
  3. Click on sync and wait for it to complete.
  4. Once done check the map
  5. See error

Expected behaviour

  • The Set Location dialog should only be shown if the sync locations are not selected. It should not be tied to the query results for the map

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: [e.g. Samsung Galaxy A2 emulator]
  • Android version: [e.g. Settings -> About phone -> Android version]
  • Build number: [e.g. Settings -> About phone -> Build number]
  • Version [e.g. 24]

Additional context