From ab848f9fb8ab48f75944a3614f70bbeceffd72d2 Mon Sep 17 00:00:00 2001 From: Samuel Fufa Date: Tue, 10 Mar 2020 11:48:53 -0700 Subject: [PATCH] AppWidgetManager option documentation Bug: 151157829 Test: n/a Change-Id: Ia6b86eaf2cbc6543854b88ee112c687590d50c1f --- .../java/android/appwidget/AppWidgetManager.java | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/core/java/android/appwidget/AppWidgetManager.java b/core/java/android/appwidget/AppWidgetManager.java index ccd8199b8373b..0d461f5fa32c1 100644 --- a/core/java/android/appwidget/AppWidgetManager.java +++ b/core/java/android/appwidget/AppWidgetManager.java @@ -174,7 +174,7 @@ public class AppWidgetManager { 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. *

* 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} @@ -182,7 +182,7 @@ public class AppWidgetManager { 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. *

After restore, the app should set OPTION_APPWIDGET_RESTORE_COMPLETED to true on its * 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"; /** - * 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"; /** - * 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"; /** - * 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";