commit | 2e90089766c047687662d402819018b308e83d15 | [log] [tgz] |
---|---|---|
author | Jaikumar Ganesh <jaikumar@google.com> | Thu Apr 11 10:40:33 2013 -0700 |
committer | Jaikumar Ganesh <jaikumar@google.com> | Fri Apr 12 09:37:59 2013 -0700 |
tree | 4e5693dabd93383891828aaa83b65b0a6ff9cc7b | |
parent | 6d0c1d78f121d4f1b72973740e8b120c7def1dc0 [diff] |
Fix race condition and disable call. 1. A dispatch event can happen as soon you call enabled, and we won't be ready to receive it. Also add error checks and not crash if such a thing happens. 2. Java layer shouldn't call disable on the native layer for trigger sensors. Native layer will clean up on its own. b/8165631 Change-Id: Icbe76bd1f50632c0bcb0b3b04975b2c2f20ff36b