bug 944104 - support creating a GeckoView programmatically, follow up to have just one LayerView constructor r=mfinkle

This commit is contained in:
Brad Lassey 2013-12-11 21:03:56 -05:00
parent f22f1abbbf
commit f2777b5a19

View File

@ -120,19 +120,7 @@ public class LayerView extends FrameLayout implements Tabs.OnTabsChangedListener
}
public LayerView(Context context) {
super(context);
mGLController = GLController.getInstance(this);
mPaintState = PAINT_START;
mBackgroundColor = Color.WHITE;
mTouchInterceptors = new ArrayList<TouchEventInterceptor>();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
mOverscroll = new OverscrollEdgeEffect(this);
} else {
mOverscroll = null;
}
Tabs.registerOnTabsChangedListener(this);
this(context, null);
}
public void initializeView(EventDispatcher eventDispatcher) {