diff options
author | Adam Cohen <adamcohen@google.com> | 2011-01-16 19:40:49 -0800 |
---|---|---|
committer | Adam Cohen <adamcohen@google.com> | 2011-01-16 19:46:15 -0800 |
commit | d110889cbca4d40f8cdeddfe6eb2f498f470ae4b (patch) | |
tree | 3fc0aa96d64f1d575795fc3d810f8f6a731608b2 /core/java/android/appwidget/AppWidgetHostView.java | |
parent | 87ab45c0fe4db814a7364fce3b88be3a49507e90 (diff) | |
download | frameworks_base-d110889cbca4d40f8cdeddfe6eb2f498f470ae4b.zip frameworks_base-d110889cbca4d40f8cdeddfe6eb2f498f470ae4b.tar.gz frameworks_base-d110889cbca4d40f8cdeddfe6eb2f498f470ae4b.tar.bz2 |
Fixing bug related to collisions with AppWidget view ids and AppWidgetHost view ids
Change-Id: I2512b83078cff6c4d444c95275625ff39466ac83
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. */ |