summaryrefslogtreecommitdiff
path: root/Source/Android/app/src/main/java
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2023-03-06 19:03:53 +0100
committerJosJuice <josjuice@gmail.com>2023-03-07 17:39:34 +0100
commit75fb1a7edfb12f490b08ab0b76a8e2f1536d2d9b (patch)
tree602c3f06e40cf5b0889906833109bba60b1dea8b /Source/Android/app/src/main/java
parent1788a797e76779c568de88605d567b1407cb992d (diff)
Android: Disable input device sensor input due to crash
Diffstat (limited to 'Source/Android/app/src/main/java')
-rw-r--r--Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/input/model/DolphinSensorEventListener.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/input/model/DolphinSensorEventListener.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/input/model/DolphinSensorEventListener.java
index cfc4f34dd7..78d0e4785d 100644
--- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/input/model/DolphinSensorEventListener.java
+++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/input/model/DolphinSensorEventListener.java
@@ -89,7 +89,13 @@ public class DolphinSensorEventListener implements SensorEventListener
{
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
{