ese-unibe-ch / ese2013-team5

3 stars 4 forks source link

Stop updating the database each time the model is created #80

Closed exside closed 10 years ago

exside commented 10 years ago

The database is always updating itself, even if absolutely no changes were made, eg, the json is fetched from the shared prefs.

The database update should only be done, when new web data is fetched, this could either be done by having an internal check btw. last update field in the database too (that could be compared to the lastupdate saved in the shared prefs) or we find another way to place the updateDB() call...eg. when web data is refetched...

exside commented 10 years ago

Solved via sModelUpdated boolean in controller/datahandler