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

Commit a89f76fb authored by Chris Tate's avatar Chris Tate Committed by Android (Google) Code Review
Browse files

Merge "Send USB_STATE broadcast to manifest receivers"

parents 540dbd08 4ca071da
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -656,6 +656,7 @@ public class UsbDeviceManager {
            // send a sticky broadcast containing current USB state
            Intent intent = new Intent(UsbManager.ACTION_USB_STATE);
            intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING
                    | Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND
                    | Intent.FLAG_RECEIVER_FOREGROUND);
            intent.putExtra(UsbManager.USB_CONNECTED, mConnected);
            intent.putExtra(UsbManager.USB_HOST_CONNECTED, mHostConnected);