Merge "Fixing 'No data transfer' mode in USB configuration" am: e8da6089ac am: 0df2517181

am: fb717b6ab2

Change-Id: I34846199e446031423b767aa66b1bd2987cf6d4c
This commit is contained in:
a.lukianenko
2019-07-10 10:25:07 -07:00
committed by android-build-merger

View File

@@ -909,6 +909,8 @@ public class UsbDeviceManager implements ActivityTaskManagerInternal.ScreenObser
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: