From 0b417b9b04dd728bf1e4dec553896992f6e9c785 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Tue, 20 Mar 2018 10:02:06 -0700 Subject: Updating javadoc for updateAppWidgetProviderInfo API Bug: 74838920 Test: N/A Change-Id: I531676900fbf8d60ef7050c86a570112ff1ad476 --- core/java/android/appwidget/AppWidgetManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/java/android/appwidget/AppWidgetManager.java b/core/java/android/appwidget/AppWidgetManager.java index f67ec4a1ebf4..20248b90d1e9 100644 --- a/core/java/android/appwidget/AppWidgetManager.java +++ b/core/java/android/appwidget/AppWidgetManager.java @@ -679,11 +679,13 @@ public class AppWidgetManager { } /** - * Updates the info for the supplied AppWidget provider. + * Updates the info for the supplied AppWidget provider. Apps can use this to change the default + * behavior of the widget based on the state of the app (for e.g., if the user is logged in + * or not). Calling this API completely replaces the previous definition. * *

* The manifest entry of the provider should contain an additional meta-data tag similar to - * {@link #META_DATA_APPWIDGET_PROVIDER} which should point to any additional definitions for + * {@link #META_DATA_APPWIDGET_PROVIDER} which should point to any alternative definitions for * the provider. * *

-- cgit v1.2.3-59-g8ed1b