From d110889cbca4d40f8cdeddfe6eb2f498f470ae4b Mon Sep 17 00:00:00 2001 From: Adam Cohen Date: Sun, 16 Jan 2011 19:40:49 -0800 Subject: Fixing bug related to collisions with AppWidget view ids and AppWidgetHost view ids Change-Id: I2512b83078cff6c4d444c95275625ff39466ac83 --- core/java/android/appwidget/AppWidgetHostView.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'core/java/android/appwidget/AppWidgetHostView.java') diff --git a/core/java/android/appwidget/AppWidgetHostView.java b/core/java/android/appwidget/AppWidgetHostView.java index 4f8ee9382d76..d8adc6cc1cc0 100644 --- a/core/java/android/appwidget/AppWidgetHostView.java +++ b/core/java/android/appwidget/AppWidgetHostView.java @@ -94,8 +94,12 @@ public class AppWidgetHostView extends FrameLayout { public AppWidgetHostView(Context context, int animationIn, int animationOut) { super(context); mContext = context; + + // We want to segregate the view ids within AppWidgets to prevent + // problems when those ids collide with view ids in the AppWidgetHost. + setIsRootNamespace(true); } - + /** * Set the AppWidget that will be displayed by this view. */ -- cgit v1.2.3