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

Commit 8aff67ec authored by Andrew Solovay's avatar Andrew Solovay Committed by Android Git Automerger
Browse files

am dad05551: am 24ccb900: am 7a866a88: am 09cf4d50: Merge "docs: Update to doc...

am dad05551: am 24ccb900: am 7a866a88: am 09cf4d50: Merge "docs: Update to doc on listening for restrictions-changed intent" into lmp-docs

* commit 'dad05551':
  docs: Update to doc on listening for restrictions-changed intent
parents f33489c6 dad05551
Loading
Loading
Loading
Loading
+12 −2
Original line number Original line Diff line number Diff line
@@ -316,8 +316,18 @@ if (!appCanUseCellular) {
  {@link android.content.Intent#ACTION_APPLICATION_RESTRICTIONS_CHANGED
  {@link android.content.Intent#ACTION_APPLICATION_RESTRICTIONS_CHANGED
  ACTION_APPLICATION_RESTRICTIONS_CHANGED} intent. Your app has to listen for
  ACTION_APPLICATION_RESTRICTIONS_CHANGED} intent. Your app has to listen for
  this intent so you can change the app's behavior when the restriction settings
  this intent so you can change the app's behavior when the restriction settings
  change. The following code shows how to dynamically register a broadcast
  change.</p>
  receiver for this intent:

<p class="note">
  <strong>Note:</strong> The {@link
  android.content.Intent#ACTION_APPLICATION_RESTRICTIONS_CHANGED
  ACTION_APPLICATION_RESTRICTIONS_CHANGED} intent is sent only to listeners
  that are dynamically registered, <em>not</em> to listeners that are declared
  in the app manifest.
</p>
<p>
  The following code shows how to dynamically register a broadcast receiver for
  this intent:
</p>
</p>


<pre>IntentFilter restrictionsFilter =
<pre>IntentFilter restrictionsFilter =