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

Commit d9dc58f7 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "AppWidgetManager option documentation" into rvc-dev am: 09654a2e am: e0bc6a83

Change-Id: Ie5a6b5e508f081a9e9aa7b914b4da93911f705e8
parents b173c131 e0bc6a83
Loading
Loading
Loading
Loading
+10 −6
Original line number Original line Diff line number Diff line
@@ -174,7 +174,7 @@ public class AppWidgetManager {
    public static final String ACTION_APPWIDGET_CONFIGURE = "android.appwidget.action.APPWIDGET_CONFIGURE";
    public static final String ACTION_APPWIDGET_CONFIGURE = "android.appwidget.action.APPWIDGET_CONFIGURE";


    /**
    /**
     * An intent extra that contains one appWidgetId.
     * An intent extra (int) that contains one appWidgetId.
     * <p>
     * <p>
     * The value will be an int that can be retrieved like this:
     * The value will be an int that can be retrieved like this:
     * {@sample frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/AppWidgetHostActivity.java getExtra_EXTRA_APPWIDGET_ID}
     * {@sample frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/AppWidgetHostActivity.java getExtra_EXTRA_APPWIDGET_ID}
@@ -182,7 +182,7 @@ public class AppWidgetManager {
    public static final String EXTRA_APPWIDGET_ID = "appWidgetId";
    public static final String EXTRA_APPWIDGET_ID = "appWidgetId";


    /**
    /**
     * A bundle extra that contains whether or not an app has finished restoring a widget.
     * A bundle extra (boolean) that contains whether or not an app has finished restoring a widget.
     * <p> After restore, the app should set OPTION_APPWIDGET_RESTORE_COMPLETED to true on its
     * <p> After restore, the app should set OPTION_APPWIDGET_RESTORE_COMPLETED to true on its
     * widgets followed by calling {@link #updateAppWidget} to update the views.
     * widgets followed by calling {@link #updateAppWidget} to update the views.
     *
     *
@@ -192,22 +192,26 @@ public class AppWidgetManager {




    /**
    /**
     * A bundle extra that contains the lower bound on the current width, in dips, of a widget instance.
     * A bundle extra (int) that contains the lower bound on the current width, in dips, of a
     * widget instance.
     */
     */
    public static final String OPTION_APPWIDGET_MIN_WIDTH = "appWidgetMinWidth";
    public static final String OPTION_APPWIDGET_MIN_WIDTH = "appWidgetMinWidth";


    /**
    /**
     * A bundle extra that contains the lower bound on the current height, in dips, of a widget instance.
     * A bundle extra (int) that contains the lower bound on the current height, in dips, of a
     * widget instance.
     */
     */
    public static final String OPTION_APPWIDGET_MIN_HEIGHT = "appWidgetMinHeight";
    public static final String OPTION_APPWIDGET_MIN_HEIGHT = "appWidgetMinHeight";


    /**
    /**
     * A bundle extra that contains the upper bound on the current width, in dips, of a widget instance.
     * A bundle extra (int) that contains the upper bound on the current width, in dips, of a
     * widget instance.
     */
     */
    public static final String OPTION_APPWIDGET_MAX_WIDTH = "appWidgetMaxWidth";
    public static final String OPTION_APPWIDGET_MAX_WIDTH = "appWidgetMaxWidth";


    /**
    /**
     * A bundle extra that contains the upper bound on the current width, in dips, of a widget instance.
     * A bundle extra (int) that contains the upper bound on the current width, in dips, of a
     * widget instance.
     */
     */
    public static final String OPTION_APPWIDGET_MAX_HEIGHT = "appWidgetMaxHeight";
    public static final String OPTION_APPWIDGET_MAX_HEIGHT = "appWidgetMaxHeight";