mirror of
https://github.com/MinimalBible/MinimalBible
synced 2024-11-21 23:48:18 -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,
|
fun doReload(enabledDownload: Boolean, lastUpdated: Long,
|
||||||
networkState: Int? = ConnectivityManager.TYPE_DUMMY): Boolean =
|
networkState: Int? = ConnectivityManager.TYPE_DUMMY): Boolean =
|
||||||
if (!enabledDownload || networkState == ConnectivityManager.TYPE_WIFI)
|
if (!enabledDownload || networkState != ConnectivityManager.TYPE_WIFI)
|
||||||
false
|
false
|
||||||
else if (lastUpdated < fifteenDaysAgo)
|
else if (lastUpdated < fifteenDaysAgo)
|
||||||
true
|
true
|
||||||
|
Loading…
Reference in New Issue
Block a user