MarcusWolschon / osmeditor4android

Vespucci is a OpenStreetMap editor for Android
http://vespucci.io
Other
381 stars 83 forks source link

Avoid network access in onPostExecute #2719

Closed simonpoole closed 2 weeks ago

simonpoole commented 2 weeks ago

Reading the OkHttps Response object in onPostExecute can potentially lead to network access on the main thread (probably depending on how much data is transferred). This fix moves any potential IO to doInBackground.