commit | 1ff9e7ae00cf4af2eb5170b96471dda5a8211832 | [log] [tgz] |
---|---|---|
author | Daniel Moore <dtmoore916@gmail.com> | Thu Feb 16 08:57:03 2017 -0600 |
committer | Peng Xu <pengxu@google.com> | Thu Apr 20 15:01:12 2017 -0700 |
tree | 79dcd74cd86fcabf3e52d014eebdc3933c09481b | |
parent | 6a08dfab0e2288245e0290703c63ea4b308559a6 [diff] |
sensors: fix concurrent modification exception The sensor listener can be removed in unregisterListener inside of the for loop. This change makes a copy of the listeners and iterates over the copy. Test: builds Bug: 37543280 Change-Id: Ie9b7b9afb6994d9627f67c4b3bfbdfb305f5583e Signed-off-by: Daniel Moore <dtmoore916@gmail.com>