am d110889c: Fixing bug related to collisions with AppWidget view ids and AppWidgetHost view ids

* commit 'd110889cbca4d40f8cdeddfe6eb2f498f470ae4b':
  Fixing bug related to collisions with AppWidget view ids and AppWidgetHost view ids
This commit is contained in:
Adam Cohen
2011-01-16 19:48:02 -08:00
committed by Android Git Automerger

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