Merge "Make sure mCurrentUsbFunctionsRequested flag be updated currectly"
am: 09a47331c9
Change-Id: If34a695b2a0f92b48aebbf793f562b5d5c9ad319
This commit is contained in:
@@ -1759,8 +1759,8 @@ public class UsbDeviceManager implements ActivityManagerInternal.ScreenObserver
|
||||
mGadgetProxy.linkToDeath(new UsbGadgetDeathRecipient(),
|
||||
USB_GADGET_HAL_DEATH_COOKIE);
|
||||
mCurrentFunctions = UsbManager.FUNCTION_NONE;
|
||||
mGadgetProxy.getCurrentUsbFunctions(new UsbGadgetCallback());
|
||||
mCurrentUsbFunctionsRequested = true;
|
||||
mGadgetProxy.getCurrentUsbFunctions(new UsbGadgetCallback());
|
||||
}
|
||||
String state = FileUtils.readTextFile(new File(STATE_PATH), 0, null).trim();
|
||||
updateState(state);
|
||||
|
||||
Reference in New Issue
Block a user