Merge "Fixing 'No data transfer' mode in USB configuration"

This commit is contained in:
Treehugger Robot
2019-07-10 16:44:29 +00:00
committed by Gerrit Code Review

View File

@@ -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: