mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Allow debug GitHub update
This commit is contained in:
parent
bd8fcae739
commit
3da45ff63b
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue