commit | b1f77247c25dd74aaeb235226758c3b5d72f863f | [log] [tgz] |
---|---|---|
author | Adrian Roos <roosa@google.com> | Fri Aug 04 12:35:24 2017 +0200 |
committer | Adrian Roos <roosa@google.com> | Fri Aug 04 13:17:44 2017 +0200 |
tree | 0e6001fbc151b18f84b67a0859cce1eb740c6279 | |
parent | 61ad5ae921d75d0f72e8477ce224a1f7562ae81d [diff] |
AsyncSensorManager: Fix unregistration bug Fixes an issue where unregistering a listener without specifying a sensor did not work correctly; when passing null as the sensor, SensorManager.unregisterListener silently ignores the call; instead, we now call the proper variant if given a null sensor. Change-Id: Iac362d8d6ae966308578cb4f177bd37af10b81a2 Fixes: 64357270 Test: runtest -x $T/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/AsyncSensorManagerTest.java