diff options
author | Romain Guy <romainguy@android.com> | 2010-03-11 18:06:42 -0800 |
---|---|---|
committer | Romain Guy <romainguy@android.com> | 2010-03-11 18:06:42 -0800 |
commit | d2671e1fcf1d7f1b8e25a2615d514cf3c26b6a9c (patch) | |
tree | 3250b0e86435f79ba7b2e4402a4adb9f00ca1c85 /core/java/android/appwidget/AppWidgetManager.java | |
parent | 476c2323d5834cbc26ff8e5838003be2404cc497 (diff) | |
download | frameworks_base-d2671e1fcf1d7f1b8e25a2615d514cf3c26b6a9c.zip frameworks_base-d2671e1fcf1d7f1b8e25a2615d514cf3c26b6a9c.tar.gz frameworks_base-d2671e1fcf1d7f1b8e25a2615d514cf3c26b6a9c.tar.bz2 |
Preserve widgets on upgrade.
Bug #2464545
Change-Id: I802878af49dc4d98210fb8049df0bbdc49268d99
Diffstat (limited to 'core/java/android/appwidget/AppWidgetManager.java')
-rw-r--r-- | core/java/android/appwidget/AppWidgetManager.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/appwidget/AppWidgetManager.java b/core/java/android/appwidget/AppWidgetManager.java index 3660001..d4ce6a1 100644 --- a/core/java/android/appwidget/AppWidgetManager.java +++ b/core/java/android/appwidget/AppWidgetManager.java @@ -183,6 +183,16 @@ public class AppWidgetManager { * @see AppWidgetProviderInfo */ public static final String META_DATA_APPWIDGET_PROVIDER = "android.appwidget.provider"; + + /** + * Field for the manifest meta-data tag used to indicate any previous name for the + * app widget receiver. + * + * @see AppWidgetProviderInfo + * + * @hide Pending API approval + */ + public static final String META_DATA_APPWIDGET_OLD_NAME = "android.appwidget.oldName"; static WeakHashMap<Context, WeakReference<AppWidgetManager>> sManagerCache = new WeakHashMap(); static IAppWidgetService sService; |