From 9c45fdb51b639d9c2b638edc70f8af7de6ff90ff Mon Sep 17 00:00:00 2001 From: cyBerta Date: Sat, 6 Nov 2021 00:24:37 +0100 Subject: fix app crash on pre Android 7 --- .../providersetup/activities/ConfigWizardBaseActivity.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/se/leap/bitmaskclient/providersetup/activities/ConfigWizardBaseActivity.java b/app/src/main/java/se/leap/bitmaskclient/providersetup/activities/ConfigWizardBaseActivity.java index 930c0f73..12c237c5 100644 --- a/app/src/main/java/se/leap/bitmaskclient/providersetup/activities/ConfigWizardBaseActivity.java +++ b/app/src/main/java/se/leap/bitmaskclient/providersetup/activities/ConfigWizardBaseActivity.java @@ -299,8 +299,11 @@ public abstract class ConfigWizardBaseActivity extends ButterKnifeActivity imple if (loadingScreen == null) { return; } - - progressBar.setProgress(value, true); + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) { + progressBar.setProgress(value); + } else { + progressBar.setProgress(value, true); + } progressBar.setIndeterminate(value >= 100 || value < 0); } -- cgit v1.2.3