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
Merge branch 'develop' of https://github.com/wordpress-mobile/WordPress-Android into issue/1246-preloading-Stats

Conflicts:
	src/org/wordpress/android/WordPress.java
Fix merge conflicts - Use constants defined in BuildConfig.java
Merge branch 'develop' of https://github.com/wordpress-mobile/WordPress-Android into issue/1246-preloading-Stats

Conflicts:
	src/org/wordpress/android/WordPress.java
Fix merge conflicts