bug 944104 - support creating a GeckoView programmatically, follow up to have just one LayerView constructor r=mfinkle
This commit is contained in:
@@ -120,19 +120,7 @@ public class LayerView extends FrameLayout implements Tabs.OnTabsChangedListener
|
|||||||
}
|
}
|
||||||
|
|
||||||
public LayerView(Context context) {
|
public LayerView(Context context) {
|
||||||
super(context);
|
this(context, null);
|
||||||
|
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void initializeView(EventDispatcher eventDispatcher) {
|
public void initializeView(EventDispatcher eventDispatcher) {
|
||||||
|
|||||||
Reference in New Issue
Block a user