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 handling of activity recreation. For instance on screen rotation #3

Merged
merged 1 commit into from
Apr 6, 2017

Conversation

Minsky
Copy link

@Minsky Minsky commented Feb 8, 2017

Hello,
as requested in #issue 1 (https://github.com/ericmaxwell2003/ticTacToe/issues/1). I implemented handling recreation of the activity in onOrientationChange and similar life cycle related events for the MVVM branch.

It is using onSaveInstanceState and parceling the complete model (Board, Cell). I am not sure, that handling the enums (Player GameState) is the best way, as I did.

PS: Thank you for the article and easy to read code sample.

@ericmaxwell2003 ericmaxwell2003 merged commit 96b3eb7 into ericmaxwell2003:mvvm Apr 6, 2017
@Minsky
Copy link
Author

Minsky commented Apr 6, 2017

great, ty!

@Minsky Minsky deleted the mvvm branch April 6, 2017 19:20
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.

2 participants