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

Show a play again dialog #13

Open
wants to merge 3 commits into
base: android-choose-player-types
Choose a base branch
from

Conversation

damonkelley
Copy link
Owner

In order to show that dialog, I let the MessageViewWrapper accept a listener, and started notifying that listener when the game is over. The GameActivity now implements the OnGameOverListener interface.

If the user chooses to play again, the activity is restarted with the original intent. Otherwise, the activity is allowed to finish.

0zuydayh4w

@damonkelley
Copy link
Owner Author

Once #12 is merged, I will likely close this PR and create a new one to merge directly into master. (This one has the merge target set to android-choose-player-types)

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.

1 participant