Disable update check for third part builds

This commit is contained in:
M66B
2019-08-11 12:58:03 +02:00
parent 355339d3cf
commit 3222b3695b
2 changed files with 4 additions and 2 deletions

View File

@@ -685,7 +685,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
}
private void checkUpdate(boolean always) {
if (Helper.isPlayStoreInstall(this))
if (Helper.isPlayStoreInstall(this) || !Helper.hasValidFingerprint(this))
return;
long now = new Date().getTime();

View File

@@ -311,7 +311,9 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
swEnglish.setChecked(prefs.getBoolean("english", false));
swWatchdog.setChecked(prefs.getBoolean("watchdog", true));
swUpdates.setChecked(prefs.getBoolean("updates", true));
swUpdates.setVisibility(Helper.isPlayStoreInstall(getContext()) ? View.GONE : View.VISIBLE);
swUpdates.setVisibility(
Helper.isPlayStoreInstall(getContext()) || !Helper.hasValidFingerprint(getContext())
? View.GONE : View.VISIBLE);
swCrashReports.setChecked(prefs.getBoolean("crash_reports", false));
swDebug.setChecked(prefs.getBoolean("debug", false));