Merge pull request #1047 from PoweRGbg/patch-1

remove wizard from backstack and fix the Exit -> returning to SW
This commit is contained in:
Milos Kozak 2018-05-20 13:54:54 +02:00 committed by GitHub
commit 8f0bd8e67f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -163,6 +163,7 @@ public class SetupWizardActivity extends AppCompatActivity {
public void finishSetupWizard(View view) {
SP.putBoolean(R.string.key_setupwizard_processed, true);
Intent intent = new Intent(this, MainActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
}
@ -185,4 +186,4 @@ public class SetupWizardActivity extends AppCompatActivity {
}
return currentWizardPage;
}
}
}