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

Commit c39a398e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Clear mCurrentAccessory if accessory function is no longer enabled"

parents 6ee45928 6276bb89
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1032,7 +1032,9 @@ public class UsbDeviceManager {
                    if (DEBUG) {
                        Slog.v(TAG, "Accessory mode enter timeout: " + mConnected);
                    }
                    if (!mConnected) {
                    if (!mConnected || !UsbManager.containsFunction(
                            mCurrentFunctions,
                            UsbManager.USB_FUNCTION_ACCESSORY)) {
                        notifyAccessoryModeExit();
                    }
                    break;