mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 15:12:51 +08:00
Added loadConfiguration to the standalone WebView
This commit is contained in:
parent
4ce585be02
commit
2142d00bb9
@ -84,12 +84,16 @@ public class CordovaWebView extends WebView {
|
|||||||
public CordovaWebView(Context context, AttributeSet attrs) {
|
public CordovaWebView(Context context, AttributeSet attrs) {
|
||||||
super(context, attrs);
|
super(context, attrs);
|
||||||
mCtx = context;
|
mCtx = context;
|
||||||
|
preferences = new PreferenceSet();
|
||||||
|
loadConfiguration();
|
||||||
setup();
|
setup();
|
||||||
}
|
}
|
||||||
|
|
||||||
public CordovaWebView(Context context, AttributeSet attrs, int defStyle) {
|
public CordovaWebView(Context context, AttributeSet attrs, int defStyle) {
|
||||||
super(context, attrs, defStyle);
|
super(context, attrs, defStyle);
|
||||||
mCtx = context;
|
mCtx = context;
|
||||||
|
preferences = new PreferenceSet();
|
||||||
|
loadConfiguration();
|
||||||
setup();
|
setup();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -97,6 +101,8 @@ public class CordovaWebView extends WebView {
|
|||||||
boolean privateBrowsing) {
|
boolean privateBrowsing) {
|
||||||
super(context, attrs, defStyle, privateBrowsing);
|
super(context, attrs, defStyle, privateBrowsing);
|
||||||
mCtx = context;
|
mCtx = context;
|
||||||
|
preferences = new PreferenceSet();
|
||||||
|
loadConfiguration();
|
||||||
setup();
|
setup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user