OSDN Git Service

Exit enteringAccessoryMode when entered.
authorPhilip P. Moltmann <moltmann@google.com>
Wed, 10 Aug 2016 00:23:44 +0000 (17:23 -0700)
committerPhilip P. Moltmann <moltmann@google.com>
Wed, 10 Aug 2016 00:23:48 +0000 (17:23 -0700)
commita025c8985887e3a6dd87ffcd74a7097b4cef327d
tree84613c28bace8c5742f47d094ba59147e64abbc1
parent17eaac06bf6121a511c75c7a251625a19e932239
Exit enteringAccessoryMode when entered.

... so that a quick usb plug -> unplug actually causes both enter and
exit. Before the second update was treated as another enter.

Admittedly treating any first update as connect and any second update as
disconnect is sketchy, but this was the intention of the current code,
so just fix that for now.

Fixes: 29377436
Change-Id: Ib6bcc23ce5ec9979edcc38952a9414683513ca0c
services/usb/java/com/android/server/usb/UsbDeviceManager.java