AndreyPavlenko / Fermata

GNU General Public License v3.0
614 stars 73 forks source link

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

Open illuzn opened 3 months ago

illuzn commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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 commented 2 months ago

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).