From 09733f33437894bcc2ec2602ffc8db9a814fc25e Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Sat, 15 Apr 2023 12:58:43 -0300 Subject: [PATCH] fix: fix auto updater on nightly builds This fixes the fact that it always showed a new update, even after it updated --- .../org/joinmastodon/android/updater/GithubSelfUpdaterImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/src/nightly/java/org/joinmastodon/android/updater/GithubSelfUpdaterImpl.java b/mastodon/src/nightly/java/org/joinmastodon/android/updater/GithubSelfUpdaterImpl.java index bc8ced96d..a9f9bc991 100644 --- a/mastodon/src/nightly/java/org/joinmastodon/android/updater/GithubSelfUpdaterImpl.java +++ b/mastodon/src/nightly/java/org/joinmastodon/android/updater/GithubSelfUpdaterImpl.java @@ -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();