Skip to content

Can't listen to "Orientation" sensor with -s flag #570

@PalaBeaveR

Description

@PalaBeaveR

Problem description
Trying to listen to the "Orientation" sensor with -s flag, instead listens to "DeviceOrientation" sensor even though there's an exact match.

image

If listening with the -a flag, the "Orientation" sensor works as expected.

Steps to reproduce

  1. Have both "Orientation" and "DeviceOrientation" sensors
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions