mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
exit app on back pressed in tutorial (#3597)
* exit app on back pressed in tutorial * exit app from ongoing tutorial * exit app on back press in tutorial
This commit is contained in:
parent
80530663a1
commit
577fb02c78
1 changed files with 5 additions and 1 deletions
|
|
@ -86,7 +86,11 @@ public class WelcomeActivity extends BaseActivity {
|
|||
if (pager.getCurrentItem() != 0) {
|
||||
pager.setCurrentItem(pager.getCurrentItem() - 1, true);
|
||||
} else {
|
||||
finish();
|
||||
if (defaultKvStore.getBoolean("firstrun", true)) {
|
||||
finishAffinity();
|
||||
} else {
|
||||
super.onBackPressed();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue