Skip to content
Permalink
Browse files

Merge pull request #1773 from MilosKozak/AdrianLxM-patch-1

Don't warn if next loop invocation is prior to update check
  • Loading branch information...
MilosKozak committed Apr 25, 2019
2 parents c56902d + f2c18cb commit c0cbaafe09994a4820898a73ff48f3454ea46b8a
@@ -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 c0cbaaf

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