mirror of
https://github.com/MinimalBible/MinimalBible
synced 2024-12-22 14:48:23 -05:00
Boundary Value testing working as hoped.
This commit is contained in:
parent
c0281cc8c7
commit
ad1a0eee84
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user