termux / termux-api

Termux add-on app which exposes device functionality as API to command line programs.
https://f-droid.org/en/packages/com.termux.api/
2.35k stars 461 forks source link

Improve sensor name matching by looking for best match #695

Open TomoBossi opened 4 months ago

TomoBossi commented 4 months ago

Hello, feel free to review and make changes :)

This fixes an issue where having both ORIENTATION and DEVICE_ORIENTATION sensors makes it impossible to select ORIENTATION with the -s flag, as noted here: https://github.com/termux/termux-api/issues/570

It should also help prevent similar issues.