parq-app / parq-android

0 stars 0 forks source link

Fix bug where find parking button didn't show up randomly #46

Closed kenzshelley closed 8 years ago

kenzshelley commented 8 years ago

What?

The 'find parking' button was randomly not showing up because of an exception that was thrown when I attempted to set the user's name in the nav drawer from a new thread. For some unknown reason this was only a problem ~30% of the time....

This also moves some code out of try blocks (the reason I missed this for so long was because the exception wasn't actually being thrown since the line was in a try block).

Additionally, it removes some weird location stuff. That's completely unrelated to everything else but it's good so I'm leaving it.

Threads are stupid.

@matthewgrossman @nickcharles