Sjobom / WeatherTracker

Android app for finding locations with the weather of your preference!
0 stars 0 forks source link

fix: make analysis run on separate thread #1

Open Sjobom opened 6 years ago

Sjobom commented 6 years ago

While the download of meterological forecasts from SMHI run on threads separate from the main thread, the analysis of the data does not do this. This makes the app stutter for a while between when the data has finished downloading and the analysis reports it result.

Sjobom commented 6 years ago

The analysis of the results is now run in a separate thread vis AsyncTask. However I still noticed the stutter :/ (possibly a smaller one). I suspect it could have to do with the creation of the markers for the map and the cards for the list view of the results. Perhaps this could be created on a separate thread? Although it is literally the UI! So it might be weird to run that creation on a separate thread as well...