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

Demo how to do an orientation lock per-screen. #204

Merged
merged 1 commit into from
Sep 2, 2016

Conversation

rjrjr
Copy link
Collaborator

@rjrjr rjrjr commented Sep 1, 2016

No description provided.


package flow.sample.orientation;

final class LandscapeScreen {
Copy link
Collaborator

@loganj loganj Sep 2, 2016

Choose a reason for hiding this comment

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

maybe make a Screen interface w/ getLayout() and @Nullable int getRequestedOrientation(), to tidy up the dispatcher a bit.

Copy link
Collaborator

Choose a reason for hiding this comment

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

javadoc

@loganj
Copy link
Collaborator

loganj commented Sep 2, 2016

This is nice. A few nits.

More importantly I think maybe Flow could take on some of this work to support config changes more easily. Happy to land this first though.

@rjrjr
Copy link
Collaborator Author

rjrjr commented Sep 2, 2016

Updated to simplify. Left the isPortrait() method alone, I think anything fancier would be another distraction. I like having all the important parts in one place.

@loganj
Copy link
Collaborator

loganj commented Sep 2, 2016

LG

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.

None yet

2 participants