Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d2346e0 authored by Jerry Zhang's avatar Jerry Zhang
Browse files

Revert: Remove the kick from config switches in UsbDeviceManager

Test: Manual
Bug: 32197840
Change-Id: Id2e939a57e170fbb4c06e55dc79c5d35ce95486f
parent a45dac0e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -560,6 +560,9 @@ public class UsbDeviceManager {
                mCurrentFunctions = functions;
                mCurrentFunctionsApplied = false;

                // Kick the USB stack to close existing connections.
                setUsbConfig(UsbManager.USB_FUNCTION_NONE);

                // Set the new USB configuration.
                if (!setUsbConfig(functions)) {
                    Slog.e(TAG, "Failed to switch USB config to " + functions);