Fixing 'No data transfer' mode in USB configuration
If 'No data transfer' mode is chosen after any other mode nothing happens, because in case of sending 'MSG_SET_SCREEN_UNLOCKED_FUNCTIONS' message no actions are taken to usbData. Signed-off-by: a.lukianenko <a.lukianenko@globallogic.com> Change-Id: I7c17a0a4275692022119a48b6d6c1550553fdceb
This commit is contained in:
committed by
Anastasiia Lukianenko
parent
073c203dae
commit
1357f7a70f
@@ -922,6 +922,8 @@ public class UsbDeviceManager implements ActivityManagerInternal.ScreenObserver
|
||||
if (!mScreenLocked && mScreenUnlockedFunctions != UsbManager.FUNCTION_NONE) {
|
||||
// If the screen is unlocked, also set current functions.
|
||||
setScreenUnlockedFunctions();
|
||||
} else {
|
||||
setEnabledFunctions(UsbManager.FUNCTION_NONE, false);
|
||||
}
|
||||
break;
|
||||
case MSG_UPDATE_SCREEN_LOCK:
|
||||
|
||||
Reference in New Issue
Block a user