bluelinelabs / bluelinelabs/Conductor

Allowing landscape mode for a specific controller

Open
#345 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
3.9k
Forks
338
PR merge metrics
No merged PRs in 30d

Description

I'm currently using Conductor in an app that is mostly
single-activity-multi-controllers (great library BTW!).
The aformentioned activity is defined as 'portrait' only in the app's manifest.
I would like to allow landscape mode for a specific screen.
One way to implement it would be to use a separate activity for that screen but
assuming that I would like to use a controller instead,
what would be the recommended implementation?

I tried to implement it simply by using the Controller's 'onChangeStarted'(swapped-in) and 'onChangeEnded'(swapped-out) methods to invoke the getActivity().setRequestedOrientation(..)
and it basically did the trick(tried to apply it to the demo app).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.