termux-api
termux-api copied to clipboard
Can't listen to "Orientation" sensor with -s flag
Problem description Trying to listen to the "Orientation" sensor with -s flag, instead listens to "DeviceOrientation" sensor even though there's an exact match.
If listening with the -a flag, the "Orientation" sensor works as expected.
Steps to reproduce
- Have both "Orientation" and "DeviceOrientation" sensors
- run
termux-sensor -s "Orientation"
Expected behavior The "Orientation" sensor is used instead of "DeviceOrientation".
Additional information
- termux-api application version: 0.50.1
- termux-api package version (installed through apt): 0.57
- Android OS version: 9
- Device model: Redmi Note 5