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

Commit 959aa8df authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Update the documentation of AppWidgetManager" into sc-dev am: ec498b70

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14736495

Change-Id: I67b08d0ce5e9e15a79cfe28b2df1b36fa587c622
parents 4cee06e8 ec498b70
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -963,6 +963,9 @@ public class AppWidgetManager {
    /**
     * Set the component for a given appWidgetId.
     *
     * If successful, the app widget provider will receive a {@link #ACTION_APPWIDGET_UPDATE}
     * broadcast.
     *
     * <p class="note">You need the BIND_APPWIDGET permission or the user must have enabled binding
     *         widgets always for your component. Should be used by apps that host widgets; if this
     *         method returns false, call {@link #ACTION_APPWIDGET_BIND} to request permission to
@@ -983,6 +986,9 @@ public class AppWidgetManager {
    /**
     * Set the component for a given appWidgetId.
     *
     * If successful, the app widget provider will receive a {@link #ACTION_APPWIDGET_UPDATE}
     * broadcast.
     *
     * <p class="note">You need the BIND_APPWIDGET permission or the user must have enabled binding
     *         widgets always for your component. Should be used by apps that host widgets; if this
     *         method returns false, call {@link #ACTION_APPWIDGET_BIND} to request permission to
@@ -1006,6 +1012,10 @@ public class AppWidgetManager {

    /**
     * Set the provider for a given appWidgetId if the caller has a permission.
     *
     * If successful, the app widget provider will receive a {@link #ACTION_APPWIDGET_UPDATE}
     * broadcast.
     *
     * <p>
     * <strong>Note:</strong> You need the {@link android.Manifest.permission#BIND_APPWIDGET}
     * permission or the user must have enabled binding widgets always for your component.