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

am: 0df2517181

Change-Id: I86e2d7afdb9039e62441d064d9c678811d8934b7
This commit is contained in:
a.lukianenko
2019-07-10 10:15:00 -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: