ubports / ubuntu-touch

A simple and beautiful mobile OS for everyone! This repository is for Ubuntu Touch issue tracking. It does not contain any code used to create Ubuntu Touch.
https://ubports.com
1.28k stars 109 forks source link

Bug report: Lockscreen rotation not working when Clock app was in foreground #1944

Open rafree opened 2 years ago

rafree commented 2 years ago

With OTA-22, greeter / lockscreen rotation was introduced. It works nicely on my device, except it seems when the clock app is in the foreground when locking the device. The observed behaviour seems to only occur with the clock app, with many others that were tested, it does not occur.

Steps to reproduce

1) Restart phone 2) Before first unlocking: Rotate phone, lock screen rotates as well. 3) Unlock phone 4) Open clock app 5) Lock screen, turn on phone, do not unlock yet: Rotate phone, lock screen does not rotate anymore 6) Unlock phone 7) Close clock app 8) Lock screen, turn on phone, do not unlock yet: Rotate phone, lock screen does rotate again.

Expected behavior

Lock screen rotation should work regardless of which app was opened before.

Actual behavior

Lock screen rotation seems to be disabled when clock app was in foreground before locking the screen.

Flohack74 commented 2 years ago

@capsia strange indeed

lduboeuf commented 2 years ago

confirmed BQ 4.5

capsia37 commented 2 years ago

Confirmed on Xperia X and Nexus 5 (not device dependent). This seems to be the case for all the apps that lock rotation because are not able to rotate. Corona app also locks rotation. We should consider if we want this behavior or not. If we allow rotation, the screen would lock to portrait rotation after unlock, because the app doesn't support the rotation state. Rotating the screen after unlock might look a bit weird. Lockscreen currently fits app needs, so it won't rotate after unlock. However on some devices rotating the screen would make it easier to login and would make the experience more consistent. I'll make a fix, then we can decide which behavior is more suitable.