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

Commit b60c48a6 authored by Jerry Zhang's avatar Jerry Zhang Committed by Android (Google) Code Review
Browse files

Merge "Broadcast only if boot complete" into oc-dr1-dev

parents 789f10fe 885b9e71
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -693,8 +693,9 @@ public class UsbDeviceManager {
                // Set the new USB configuration.
                setUsbConfig(oemFunctions);

                if (UsbManager.containsFunction(functions, UsbManager.USB_FUNCTION_MTP)
                        || UsbManager.containsFunction(functions, UsbManager.USB_FUNCTION_PTP)) {
                if (mBootCompleted
                        && (UsbManager.containsFunction(functions, UsbManager.USB_FUNCTION_MTP)
                        || UsbManager.containsFunction(functions, UsbManager.USB_FUNCTION_PTP))) {
                    // Start up dependent services.
                    updateUsbStateBroadcastIfNeeded(true);
                }