Bug 1359422 - Add GeckoView constructor that allows both xml attribs and settings r=esawin

MozReview-Commit-ID: 8U1ojpLSSiK
This commit is contained in:
James Willcox 2017-04-21 17:09:07 -05:00
parent 5841b2f70e
commit 96b2d70241

View File

@ -256,6 +256,13 @@ public class GeckoView extends LayerView
public GeckoView(Context context, final GeckoViewSettings settings) {
super(context);
final GeckoViewSettings newSettings = new GeckoViewSettings(settings, getEventDispatcher());
init(context, settings);
}
public GeckoView(Context context, AttributeSet attrs, final GeckoViewSettings settings) {
super(context, attrs);
final GeckoViewSettings newSettings = new GeckoViewSettings(settings, getEventDispatcher());
init(context, newSettings);
}