diff options
Diffstat (limited to 'core/java/android/appwidget/AppWidgetHostView.java')
-rw-r--r-- | core/java/android/appwidget/AppWidgetHostView.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/java/android/appwidget/AppWidgetHostView.java b/core/java/android/appwidget/AppWidgetHostView.java index 4f8ee93..d8adc6c 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. */ |