Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix mode switching.

Change-Id: I7532b001c413c9fcbda2916f83dffe7d29d1cf37
  • Loading branch information...
commit 932b0f03bd2a7439650d6bf46f295309f4a62cfb 1 parent c0026b1
@maniac103 maniac103 authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/com/motorola/usb/UsbService.java
View
5 src/com/motorola/usb/UsbService.java
@@ -490,8 +490,9 @@ private synchronized void handleUsbEvent(int event) {
if (mIsSwitchFrom == USB_SWITCH_FROM_UI
|| mIsSwitchFrom == USB_SWITCH_FROM_AT_CMD
- || mIsSwitchFrom == USB_SWITCH_FROM_USBD
- || mIsSwitchFrom == USB_SWITCH_FROM_ADB) {
+ || mIsSwitchFrom == USB_SWITCH_FROM_USBD) {
+ mUsbListener.sendUsbModeSwitchCmd(getSwitchCommand(mNewUsbMode));
+ } else if (mIsSwitchFrom == USB_SWITCH_FROM_ADB) {
mUsbListener.sendUsbModeSwitchCmd(getSwitchCommand(currentMode));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.