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

Feature Request: Toggle to disable landscape rotation in Fermata Mirror #511

Open
illuzn opened this issue Jul 17, 2024 · 4 comments
Open

Comments

@illuzn
Copy link

illuzn commented Jul 17, 2024

Firstly, thank you so much for this app.

I'm using Fermata Mirror on Xiaomi Mix Fold 2 running OEM Android 13 ROM and Android Auto 12.2.642414.

This works great except Fermata Mirror keeps trying to auto rotate my screen to landscape. Is there a way you can add a toggle to Fermata settings to disable this rotation? For example, using the YouTube app, it is much easier to find new videos using portrait mode then tap the full screen button to switch to landscape while watching.

Thanks again.

@AndreyPavlenko
Copy link
Owner

Currently, there is no such an option. The landscape mode is forced, when the car screen width > height. You can temporary disable this mode by touching the phone screen.

@illuzn
Copy link
Author

illuzn commented Jul 18, 2024

You can temporary disable this mode by touching the phone screen.

Interesting, I did see that in the code but it doesn't seem to work for me... device continuously tries to switch to landscape even as I'm furiously tapping the screen.

Let me know how I can debug or provide logs if you need to assist with this.

@AndreyPavlenko
Copy link
Owner

It's implemented here - https://github.com/AndreyPavlenko/Fermata/blob/master/fermata/src/auto/java/me/aap/fermata/auto/MirrorDisplay.java#L593

If you have the auto rotation enabled, it's disabled when the mirror is started and temporary enabled again on touch.

@illuzn
Copy link
Author

illuzn commented Jul 22, 2024

It looks like I've discovered something more. If my device auto rotation is lock/ off, that is when I encounter this problem. It seems like the device thinks it should be locked in landscape mode and any action I take returns to portrait for a split second then rotates to landscape (e.g. Exiting youtube full screen mode).

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

No branches or pull requests

2 participants