Boundary Value testing working as hoped.

This commit is contained in:
Bradlee Speice 2014-11-07 00:27:17 -05:00
parent c0281cc8c7
commit ad1a0eee84

View File

@ -50,7 +50,7 @@ class RefreshManager(val installers: Collection<Installer>,
fun doReload(enabledDownload: Boolean, lastUpdated: Long,
networkState: Int? = ConnectivityManager.TYPE_DUMMY): Boolean =
if (!enabledDownload || networkState == ConnectivityManager.TYPE_WIFI)
if (!enabledDownload || networkState != ConnectivityManager.TYPE_WIFI)
false
else if (lastUpdated < fifteenDaysAgo)
true