Merge "Fixing 'No data transfer' mode in USB configuration"
This commit is contained in:
@@ -922,6 +922,8 @@ public class UsbDeviceManager implements ActivityManagerInternal.ScreenObserver
|
|||||||
if (!mScreenLocked && mScreenUnlockedFunctions != UsbManager.FUNCTION_NONE) {
|
if (!mScreenLocked && mScreenUnlockedFunctions != UsbManager.FUNCTION_NONE) {
|
||||||
// If the screen is unlocked, also set current functions.
|
// If the screen is unlocked, also set current functions.
|
||||||
setScreenUnlockedFunctions();
|
setScreenUnlockedFunctions();
|
||||||
|
} else {
|
||||||
|
setEnabledFunctions(UsbManager.FUNCTION_NONE, false);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MSG_UPDATE_SCREEN_LOCK:
|
case MSG_UPDATE_SCREEN_LOCK:
|
||||||
|
|||||||
Reference in New Issue
Block a user