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

Make app exit on back press when events screen is opened from the welcome screen #1098

Merged
merged 3 commits into from Feb 14, 2019

Conversation

AnEnigmaticBug
Copy link
Contributor

Fixes #992

Changes: Earlier, if the user selected the "Use my current location" option in the welcome screen and pressed the back button in the newly opened events screen, he would see the welcome screen slide in partially for an instant. Then, he would be shown the events screen again. Thus, the back button wasn't working.

This was because the welcome screen remained on the backstack.

This commit fixes the issue and implements conditional navigation to the welcome screen like Google's docs recommend.

AnEnigmaticBug and others added 3 commits February 10, 2019 10:47
Earlier, if the user selected the "Use my current location" option in
the welcome screen and pressed the back button in the newly opened
events screen, he would see the welcome screen slide in partially for an
instant. Then, he would be shown the events screen again. Thus, the back
button wasn't working.

This was because the welcome screen remained on the backstack.

This commit fixes the issue and implements conditional navigation to the
welcome screen like Google's docs recommend.

Fixes: fossasia#992
Copy link
Member

@liveHarshit liveHarshit left a comment

Choose a reason for hiding this comment

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

Good work!

@AnEnigmaticBug
Copy link
Contributor Author

Thank you :)

@nikit19 nikit19 merged commit 73a5372 into fossasia:development Feb 14, 2019
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.

Welcome Fragment loading again when back pressed.
3 participants