Closed hanneseilers closed 10 years ago
Saving last mensa is done now. Have you already done the version hints stuff or is there still something missing?
The preferences are ok now. Important is the hidden section (It should be removed from preference screen on startup of the app). There is the last revision number stored to check if there was an update of the app.
Saving the last city doesn't work now.
I'll fix it.
Now city and mensa name are stored in shared preferences and saved onDestroy() of main activity.
Does saving the selected city and mensa work for you now? Here, it always shows Flensburg Mensa after restarting, regardless of what I selected before.
For me it works. Check the result of getting the preference inside the getSelection() function of the cities and mensen loaders. And also what is saved in onDestroy() of main activity.
Looks like there were two problems: First, onDestroy is not called when I exit the activity with the back button or swipe it out of the multitasking view (see http://developer.android.com/reference/android/app/Activity.html#onDestroy%28%29). Maybe it works for you because you have less RAM. But we should use onPause for that. Second, when the preference is not set yet, you set it to not save it by default. But the default value for the preference in the Preferences Activity was true, so it wasn't behaving as expected after I cleared data for the app. I resolved those issues now.
Due to gui update some features are missing.