run wizard to setup units

This commit is contained in:
Milos Kozak 2019-11-27 23:39:16 +01:00
parent 3ee9836e66
commit bfb65d0f8a

View file

@ -255,6 +255,11 @@ public class MainActivity extends NoSplashAppCompatActivity {
SP.remove(R.string.key_pump_unreachable_threshold);
if (unreachable_threshold < 30) unreachable_threshold = 30;
SP.putString(R.string.key_pump_unreachable_threshold, Integer.toString(unreachable_threshold));
if (!SP.contains(R.string.key_units)) {
Intent intent = new Intent(this, SetupWizardActivity.class);
startActivity(intent);
}
}