Skip to content

[BUG] Android low end OrientationSensor is too sensitive to tilt left/rigth in landscape-right/left #87

@p1d3c

Description

@p1d3c

Describe the bug
Previous bug was almost fixed (check additional context). Sensor does not call when tilting device left or right in portrait mode.

To Reproduce
Steps to reproduce the behavior:

  1. Set device in landscape-left position

  2. Try to tilt device to right about 15 degrees

  3. SensorListener called to change device orientation

  4. Set device in landscape-right position

  5. Try to tilt device to left about 15 degrees

  6. SensorListener called to change device orientation

Expected behavior
SensorListener doesnt called

Smartphone (please complete the following information):

  • OS: Android
  • Device: Xiaomi Redmi 10s
  • Version Android 13

Environment
System:
OS: macOS 15.5
CPU: (10) arm64 Apple M1 Pro
Memory: 122.38 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.11.0
path: /usr/local/bin/node
Yarn: Not Found
npm:
version: 10.9.0
path: /usr/local/bin/npm
Watchman:
version: 2025.04.14.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /Users/p1d3c/.rvm/rubies/ruby-2.7.6/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.1
- iOS 18.1
- macOS 15.1
- tvOS 18.1
- visionOS 2.1
- watchOS 11.1
Android SDK: Not Found
IDEs:
Android Studio: 2024.3 AI-243.26053.27.2432.13536105
Xcode:
version: 16.1/16B40
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.13
path: /usr/bin/javac
Ruby:
version: 2.7.6
path: /Users/p1d3c/.rvm/rubies/ruby-2.7.6/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 18.0.0
wanted: 18.0.0
react:
installed: 19.0.0
wanted: 19.0.0
react-native:
installed: 0.79.2
wanted: 0.79.2
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true

Additional context
Add any other context about the problem here. <- previous issue for this bug.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions