irceline / aq-mobile-be

App for consulting air quality data in Belgium using the ionic framework for Android and iOS
Apache License 2.0
7 stars 8 forks source link

View in detail not returning to default after choosing pollutant and closing #279

Closed ffierens closed 2 years ago

ffierens commented 3 years ago

After choosing a pollutant using "View in detail" and closing the "View in detail" again, the app is not returning to the default config (=the option with all pollutants). It is necessary to close and reopen the app to get the list of all pollutants in the "View in detail" again. (version 1.7.9)

bieblebrox commented 3 years ago

It should be possible to return to the list by simply pressing the back button (left pointing arrow), as you can see in the video below

https://user-images.githubusercontent.com/53826760/117012655-7715a300-acef-11eb-9d2e-e8ea1dac674b.mp4

opeeters commented 3 years ago

Different behaviour on Samsung A50 (Android 11), I'm afraid. When you click the back button on the map-tab, the app closes..

opeeters commented 3 years ago

Maybe were looking at different things here. @ffierens is not revering to the back button on the tab: image

But rather the system back-button (Android specific). I think this issue is rather something for @janschulte or @SpeckiJ But we had this issue before (cf #224). Maybe some code was accidentally removed? I can't find the storeLastNavigation function I was revering to anymore in the code. But it's maybe rather related to newRoute and NavigationEnd?

Steps to reproduce:

Result:

The system back button works well in the info-tab, menu, feedback and long-term tab

bieblebrox commented 2 years ago

Back button events are now caught and connected to pulltab