Skip to content

On this day game code structure refactor #5740

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

Williamrai
Copy link
Collaborator

@Williamrai Williamrai commented Jul 1, 2025

What does this do?

The gameplay logic is moved out of OnThisDayGameActivity into its own fragment called OnThisDayGamePlayFragment. The onboarding fragment now acts as the menu. It shows the user the current state of the game and handles navigation from there. So instead of updating the state for navigation, the logic now directly navigates the user to the fragment. Also, OnThisDayGameOnboardingFragment is now called OnThisDayGameMenuFragment, and OnThisDayFinalFragment has been renamed to OnThisDayGameOverFragment.

Note: All game logic remains the same.

Copy link
Collaborator

@cooltey cooltey left a comment

Choose a reason for hiding this comment

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

Noticed an issue: when you complete the game and see the final screen, and then go back to the previous screen by using the system back button, you will see the game questions for a bit. Is the issue related to this change?

@dbrant dbrant removed the request for review from voyagerfan July 2, 2025 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants