Don't check for app updates if Wi-Fi is disconnected and "Upload only on WiFi" setting is true

* Fixes #766
* Minor clean up of MainActivity.java