MerginMaps/mobile

Android back button sometimes misbehaves

Opened this issue · 3 comments

It looks like there are some cases when the Android system back button does not work well:

  1. open the app (with a project loaded)
  2. tap Layers
  3. tap Android back button - it will not close the Layers page (only the top-left button works)

But next time the Layers page gets opened, the system back button works fine.

A similar issue is with the back button after tapping Add (to start recording), and then tapping the back button - it wants to close the app rather than jump out of the recording mode. The system back button should behave as if the top-left back button was used.

Let's also check all other places and confirm it works well on all pages. @jozef-budac once we fix this, can you please update regression tests to also check the hardware back button on Android?

On Map Canvas, the android back button always tries to close the app, even when the top left back button does something else

Screen_Recording_20240807_083130.mp4

There is also one case for the calendar. The back button closes the form and not the calendar. Similar is the value relations list. After hitting Android back button and hitting "No thanks" on the Unsaved changes window, the value relations list remains open on the map canvas.

Screen_Recording_20240807_084840.mp4