summaryrefslogtreecommitdiff
path: root/core/java/android/appwidget/AppWidgetManager.java
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2012-09-19 20:36:23 -0700
committerAdam Cohen <adamcohen@google.com>2012-09-20 15:18:47 -0700
commitfbe44b7d5e2d9d06a238a54f8ed460fb8bc49585 (patch)
treeb09e71125ccf42e0dfd016385aa8f1ff9c5067e0 /core/java/android/appwidget/AppWidgetManager.java
parent4e7b551fbffa6112821ed6cfeedd6128463fccd0 (diff)
Fixing partiallyUpdateAppWidget to cache the new changes
-> This is a good change to the widget framework that I've wanted to make for a while, but issue 7174198 triggered the immediate need. Change-Id: I3f267e0e67f2d9f28920bb53973af365a3c9e0ba
Diffstat (limited to 'core/java/android/appwidget/AppWidgetManager.java')
-rw-r--r--core/java/android/appwidget/AppWidgetManager.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/java/android/appwidget/AppWidgetManager.java b/core/java/android/appwidget/AppWidgetManager.java
index 6fb6dc43ac09..888955cc4e2b 100644
--- a/core/java/android/appwidget/AppWidgetManager.java
+++ b/core/java/android/appwidget/AppWidgetManager.java
@@ -436,10 +436,9 @@ public class AppWidgetManager {
*
* This update differs from {@link #updateAppWidget(int[], RemoteViews)} in that the
* RemoteViews object which is passed is understood to be an incomplete representation of the
- * widget, and hence is not cached by the AppWidgetService. Note that because these updates are
- * not cached, any state that they modify that is not restored by restoreInstanceState will not
- * persist in the case that the widgets are restored using the cached version in
- * AppWidgetService.
+ * widget, and hence does not replace the cached representation of the widget. As of API
+ * level 17, the new properties set within the views objects will be appended to the cached
+ * representation of the widget, and hence will persist.
*
* Use with {@link RemoteViews#showNext(int)}, {@link RemoteViews#showPrevious(int)},
* {@link RemoteViews#setScrollPosition(int, int)} and similar commands.