Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added warning on accidental exit #201

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

dikshamalik2552
Copy link

This PR fixes the issue: odk-x/tool-suite-X#129

@odk-x-bot
Copy link

Can one of the admins verify this patch? Also need an authorization to run tests.

})
.setNegativeButton("No", null)
.show();
//popBackStack();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not believe this solution will work. As the back stack tracks the screens that have been rendered in the WebUI. By commenting out popBackStack() you are changing the way Tables is designed to operate.

The warning should only happen when there is nothing left on the back stack. Otherwise it should bring up the other back stack entry. Check out line 265 as that is the case when finish is getting called because there is nothing left on the backStack

@dikshamalik2552 dikshamalik2552 changed the base branch from master to development April 18, 2022 07:15
@dikshamalik2552
Copy link
Author

I got your point, @wbrunette. I've committed the changes. So, can you please review it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants