Skip to content

Commit

Permalink
Android: Disable input device sensor input due to crash
Browse files Browse the repository at this point in the history
  • Loading branch information
JosJuice committed Mar 7, 2023
1 parent 1788a79 commit 75fb1a7
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,13 @@ public DolphinSensorEventListener(InputDevice inputDevice)
{
mSensorManager = inputDevice.getSensorManager();

addSensors();
// TODO: There is a bug where after suspending sensors, onSensorChanged can get called for
// a sensor that we never registered as a listener for. The way our code is currently written,
// this causes a NullPointerException, but if we checked for null we would instead have the
// problem of being spammed with onSensorChanged calls even though the sensor shouldn't be
// enabled. For now, let's comment out the ability to use InputDevice sensors.

//addSensors();
}
else
{
Expand Down

0 comments on commit 75fb1a7

Please sign in to comment.