Fixing bug related to collisions with AppWidget view ids and AppWidgetHost view ids

Change-Id: I2512b83078cff6c4d444c95275625ff39466ac83
This commit is contained in:
Adam Cohen
2011-01-16 19:40:49 -08:00
parent 87ab45c0fe
commit d110889cbc

View File

@@ -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.
*/