From 3da45ff63b12106887928b645562b69e47a50ba9 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 27 Apr 2021 18:52:31 +0200 Subject: [PATCH] Allow debug GitHub update --- app/src/main/java/eu/faircode/email/ActivityView.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityView.java b/app/src/main/java/eu/faircode/email/ActivityView.java index 086f1ac6d6..a6a3e89efa 100644 --- a/app/src/main/java/eu/faircode/email/ActivityView.java +++ b/app/src/main/java/eu/faircode/email/ActivityView.java @@ -922,7 +922,9 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB } private void checkUpdate(boolean always) { - if (Helper.isPlayStoreInstall() || !Helper.hasValidFingerprint(this)) + if (Helper.isPlayStoreInstall()) + return; + if (!Helper.hasValidFingerprint(this) && !(always && BuildConfig.DEBUG)) return; long now = new Date().getTime(); @@ -1000,7 +1002,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB String name = jasset.getString("name"); if (name.endsWith(".apk")) { Log.i("Latest version=" + info.tag_name); - if (BuildConfig.VERSION_NAME.equals(info.tag_name)) + if (BuildConfig.VERSION_NAME.equals(info.tag_name) && !BuildConfig.DEBUG) return null; else return info;