fix: fix auto updater on nightly builds

This fixes the fact that it always showed a new update, even after it updated
This commit is contained in:
LucasGGamerM
2023-04-15 12:58:43 -03:00
parent 249dd5c0e5
commit 09733f3343

View File

@@ -147,7 +147,7 @@ public class GithubSelfUpdaterImpl extends GithubSelfUpdater{
.putString("version", version)
.putString("apkURL", url)
.putString("changelog", changelog)
.putInt("checkedByBuild", BuildConfig.VERSION_CODE)
.putInt("checkedByBuild", BuildConfig.VERSION_CODE - 1)
.remove("downloadID")
.apply();