mattprecious / telescope

A simple tool to allow easy bug report capturing within your app.
Apache License 2.0
1.18k stars 116 forks source link

Fix using DateFormat on background thread #66

Closed NightlyNexus closed 7 years ago

NightlyNexus commented 7 years ago

https://developer.android.com/reference/java/text/SimpleDateFormat.html

Date formats are not synchronized. It is recommended to create separate format instances for each thread. If multiple threads access a format concurrently, it must be synchronized externally.

This isn’t currently an error because AsyncTask uses a SerialExecutor by default. So, close this if it's not worth it.