Refresh Stats in background. Also fixes an issue where the progress indicator is never stopped.
Add comment
Upgrade Stats when the app is moved from Background to Foreground. Also improved the code that handles application lifecycle events.
Switch back to the correct timeout
Remove comment
Refresh Stats in background. Also fixes an issue where the progress indicator is never stopped.
Add comment
Upgrade Stats when the app is moved from Background to Foreground. Also improved the code that handles application lifecycle events.
Switch back to the correct timeout
Remove comment
Add a timestamp that prevents refreshing stats in background if "last-refresh" time is less than 30 minutes.
Merge branch 'issue/1246-preloading-Stats' of https://github.com/wordpress-mobile/WordPress-Android into 1246-preloading-Stats

Conflicts:
	src/org/wordpress/android/WordPress.java
	src/org/wordpress/android/ui/WPActionBarActivity.java
Update the Stats timer when the user refreshes stats in Foreground.
Merge branch 'develop' of https://github.com/wordpress-mobile/WordPress-Android into 1246-preloading-Stats

Conflicts:
	src/org/wordpress/android/WordPress.java
Fix merge conflicts
Renamed the method that checks if Stats should be refreshed in BG
fix #1279: mediautils crash
fix #1261
Use a custom implementation of HttpStack that internally initializes SelfSignedSSLCertsManager in a secondary thread. All connections that need to use the SelfSignedSSLCertsManager will wait till the initialization is completed. (few secs).
fix cacheDir initialization