Routelandia / routelandia-android

The Android client for Routelandia
Apache License 2.0
1 stars 0 forks source link

Date/Time chooser should remember my previous choice if I pick new points #68

Open joshproehl opened 9 years ago

joshproehl commented 9 years ago

Given: 1) I pick points 2) I pick date/time 3) I view statistics 4) I use back button to go back and pick two new points

Then: When I tap "Time and Date" again my previous date and time choices should still be populated.

joshproehl commented 9 years ago

Did some looking in to this and it seems we might have to change the way the activities relate to each other to make it work. Maps creates DateChooser creates StatsList, which the back button destroys, and then the DateChooser is destroyed if you press back again. Since the chooser is destroyed when it is popped simply using the typical saveInstanceState stuff doesn't work.

I tried changing LaunchType to SingleInstance so that you get back to the same chooser, but this prevents the activity from going onto the backstack, so the back button takes you right past it... Not ideal.