diff options
author | Badhri Jagan Sridharan <Badhri@google.com> | 2017-07-11 16:34:41 -0700 |
---|---|---|
committer | Badhri Jagan Sridharan <badhri@google.com> | 2017-07-12 18:47:07 +0000 |
commit | 6276bb899e810655fab9083393c7f4d2a494b7d7 (patch) | |
tree | 38d6964075253793fff2dc1b755546f3a4a240b4 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | f922271d4e1a6532e38748b666db8ed4f3059e17 (diff) |
Clear mCurrentAccessory if accessory function is no longer enabled
Accessory mode implements debounce timeout ACCESSORY_REQUEST_TIMEOUT
within which when a disconnect is seen, the accessory function would
be removed from the usb configuration but mCurrentAccessory would
not be set to NULL until the timeout expires.
Also, setEnabledFunctions(null, false, false) does not force an
additional disconnect when accessory function has already been
removed from usb configuration.
BUG: 62241238
Change-Id: I25973475fb02d613e11396bcad5e88656ad8940a
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions