diff options
| author | 2011-01-16 19:40:49 -0800 | |
|---|---|---|
| committer | 2011-01-16 19:46:15 -0800 | |
| commit | d110889cbca4d40f8cdeddfe6eb2f498f470ae4b (patch) | |
| tree | 3fc0aa96d64f1d575795fc3d810f8f6a731608b2 | |
| parent | 87ab45c0fe4db814a7364fce3b88be3a49507e90 (diff) | |
Fixing bug related to collisions with AppWidget view ids and AppWidgetHost view ids
Change-Id: I2512b83078cff6c4d444c95275625ff39466ac83
| -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 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. */ |