enhancement : prevent accidentally answering a call while holding the phone upside down
Created by: YougoCodes
Using the UT device in any desired orientation -now even with a rotating lock screen- is great, but in the end, making phone calls (without using peripherals) requires the phone to orientated with the speaker up towards the ear and the mic down towards the mouth.
As many modern devices are indistinct black rectangles, not many visual clues exist to quickly discern whether the device is held upright or upside down.
It could help if Dialer-app could force an upright orientation on phones, with Lomiri in 'staged mode' at least ('Desktop mode' and/or tablets with varying locations for mic and speakers complicate things...) so the app would provide the visual cue to which way is up.
A way to test the desired behavior is to do the following:
- add this line,
X-Ubuntu-Supported-Orientations=portrait
to/usr/share/applications/dailer-app.desktop
- close the Dialer-app if running
- rotate the device to any position other than portrait
- (you may lock the phone or not, but the behavior should be the same either way)
- make a call to the device
The incoming call notification should appear at the top right
- declining the call should leave the device as it is
- accepting the call should start the Dialer-app, which promptly rotates the UI to portrait
- ending the call leaves the Dialer-app active. as soon as another app is focused, rotation is released.
Modifying the .desktop file will overrule all other use cases. perhaps a switch or drop-down list can be placed inside the Dialer-app's settings to allow the user to define behavior?