OSDN Git Service

fix [2931909] SensorManger breaks when using different SensorEventListener w/ the...
authorMathias Agopian <mathias@google.com>
Tue, 14 Sep 2010 23:44:59 +0000 (16:44 -0700)
committerMathias Agopian <mathias@google.com>
Fri, 17 Sep 2010 00:21:08 +0000 (17:21 -0700)
commitec33b82c42f3dd996a72b80359c87524b51ffb2a
treec7b048e80b975e8a04714e129772c68b9e6803fc
parent9c2587104ae259b9fa6a3525063197cc08e8820b
fix [2931909] SensorManger breaks when using different SensorEventListener w/ the same sensors

- Sensor handle can now be arbitrary instead of being limited to 0-31
- make sure to disable sensors only when no listener uses them anymore

Change-Id: If656c8c24d9827a7db1de3b3aa89961abb7def0c
core/java/android/hardware/SensorManager.java