summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Sunny Goyal <sunnygoyal@google.com> 2018-03-20 20:03:47 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2018-03-20 20:03:47 +0000
commit90df705a0ba361bfcb0d2ea86f24b6691f824509 (patch)
treee3099515ed9c2ded3d2b7b8c113815a8dd00f47a
parent6b0a9bc05495e880bbeed21e9d16d142ea61cc8b (diff)
parent0b417b9b04dd728bf1e4dec553896992f6e9c785 (diff)
Merge "Updating javadoc for updateAppWidgetProviderInfo API" into pi-dev
-rw-r--r--core/java/android/appwidget/AppWidgetManager.java6
1 files 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.
*
* <p>
* 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.
*
* <p>