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

Commit 79867f59 authored by Matt Casey's avatar Matt Casey
Browse files

Update doc for ACTION_HEADSET_PLUG to mention explicit register.

Copied the documentation from other similar actions that have the
same behavior.

AudioService.java has
 intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
for this action.

Change-Id: I79736f8146bd6b72d01034be428e83b5841c73fa
parent 467a2b7c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2173,6 +2173,11 @@ public class Intent implements Parcelable, Cloneable {
    /**
     * Broadcast Action: Wired Headset plugged in or unplugged.
     *
     * You <em>cannot</em> receive this through components declared
     * in manifests, only by explicitly registering for it with
     * {@link Context#registerReceiver(BroadcastReceiver, IntentFilter)
     * Context.registerReceiver()}.
     *
     * <p>The intent will have the following extra values:
     * <ul>
     *   <li><em>state</em> - 0 for unplugged, 1 for plugged. </li>