commit | 4f9e88a4afc7eb3e299b8a69c853f89077c86435 | [log] [tgz] |
---|---|---|
author | David Stevens <stevensd@google.com> | Tue Dec 13 20:34:42 2016 -0800 |
committer | David Stevens <stevensd@google.com> | Tue Dec 13 20:44:32 2016 -0800 |
tree | 914254df3599c29bd6b9a6e4e2c648315365ce6f | |
parent | 41c4d3792b357eab4c4b54a6a62065e9b4fcc381 [diff] |
Exit accessory mode more aggressively The debouncing of USB disconnects means that the disconnect caused by resetting the connection without unplugging the device does not make it to the handler, and thus doesn't exit accessory mode. Therefore we must exit accessory mode even for connect events after we have left the entering accessory mode state. Test: Manual testing with desktop head unit Change-Id: Ia028ff28783fa777a9f8bcd86b523d01f633a140