thecosmicfrog / LuasataGlance

Android Wear and mobile app providing real-time tram stop information for Dublin's Luas light rail service.
https://play.google.com/store/apps/details?id=org.thecosmicfrog.luasataglance
GNU General Public License v3.0
21 stars 5 forks source link

Progress circle should disappear after a stop forecast is loaded #7

Closed thecosmicfrog closed 9 years ago

thecosmicfrog commented 9 years ago

For some reason, the ProgressBar "loading circle" does not disappear on my Nexus 5. It stops spinning, but stays visible in whatever state it finished in. Oddly, this behaviour is not present on the Nexus 5 emulator, nor does the ProgressBar stay visible when the view is "swipe refreshed". Investigate.

thecosmicfrog commented 9 years ago

Fixed in 1923636e610f0aac43d14fe9dff10646e95e613d using a bit of an ugly hack. Enforced a minHeight on the RelativeLayout around the ProgressBar elements which is the same size as the ProgressBar itself. I then switched from using setVisible(View.INVISIBLE) to setVisible(View.GONE). I'll see if there's a better way of doing this in the future.