Added code to save the current screen to handle orientation changes or an#4
Added code to save the current screen to handle orientation changes or an#4Accused187 wants to merge 1 commit intoysamlan:masterfrom
Conversation
…r any other behaviors where the activity would be destroyed.
|
This looks great; I'll check it out and pull it back in as soon as I get a chance to test it a bit. |
|
That's interesting...it is working in my own implementation but you're correct it is not working in the demo. The only difference I can think of right off the bat is that I'm using the HorizontalPager as my global container for everything and using statements for different xml layouts whereas the demo project isn't. I will try and investigate further and see what I come up with. |
|
This code works well. The state isn't being persisted properly because of two problems with the demo activities.
I've bundled these changes along with additional fixes in a pull request. |
|
Apologies for the late reply, I've been away on vacation for the past 2 1/2 weeks so I haven't done work on this. The saved state only working on views with an id certainly explains why it worked in my project versus the demo included here as I load my layouts through XML where I always have id attributes. Kudos on the radio button fix as well. Thanks for picking up my slack. :-) |
Added code to save the current screen to handle orientation changes or any other behaviors where the activity would be destroyed. This should resolve the pending issue.