Skip to content

Enhance location permission handling by introducing a flag for dialog visibility

Ahmed Reda requested to merge development into staging

This commit improves the location permission management by adding a flag to control the visibility of permission dialogs based on the current screen. Key changes include:

  • Introduced setShouldShowPermissionDialog method in LocationCubit to manage dialog visibility.
  • Updated HomeScreen to disable permission dialog display.
  • Modified LocationWidget to conditionally request permissions based on the dialog visibility flag.
  • Ensured that the LocationScreen sets the flag to show the permission dialog.

These updates aim to streamline the user experience by preventing unnecessary permission prompts in the home screen while maintaining functionality in the location screen.

Merge request reports

Loading