diff options
author | cyBerta <cyberta@riseup.net> | 2021-11-06 00:24:37 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2021-11-06 00:24:37 +0100 |
commit | 9c45fdb51b639d9c2b638edc70f8af7de6ff90ff (patch) | |
tree | 82f7aa332de80c29944ea4853e0cb658ecb523ca /app/src | |
parent | 7b2f2432edf3f2b4c66aa95d398c65de63da6f46 (diff) |
fix app crash on pre Android 7
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/providersetup/activities/ConfigWizardBaseActivity.java | 7 |
1 files 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); } |