Skip to content
Permalink
Browse files

Don't warn if next loop invocation is prior to update check

  • Loading branch information...
AdrianLxM committed Apr 25, 2019
1 parent c56902d commit f2c18cbc1ff7ceab3659f3e96fb36d64c0d2c956
@@ -32,6 +32,13 @@ object VersionCheckerPlugin : PluginBase(PluginDescription()

private fun checkWarning() {
val now = System.currentTimeMillis()

if (!SP.contains(R.string.key_last_versionchecker_plugin_warning)) {
SP.putLong(R.string.key_last_versionchecker_plugin_warning, now)
return
}


if (isOldVersion(GRACE_PERIOD_WARNING) && shouldWarnAgain(now)) {
// store last notification time
SP.putLong(R.string.key_last_versionchecker_plugin_warning, now)

0 comments on commit f2c18cb

Please sign in to comment.
You can’t perform that action at this time.