Merge "Fixing 'No data transfer' mode in USB configuration"
am: e8da6089ac
Change-Id: I7f0e03ccebb65e0c9a483adffc4af980ff164a3b
This commit is contained in:
@@ -909,6 +909,8 @@ public class UsbDeviceManager implements ActivityTaskManagerInternal.ScreenObser
|
|||||||
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