mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
Minor tweaks to DroidGap, allows for the ChromeClient and ViewClient to be overridden
This commit is contained in:
parent
b793fbfc28
commit
49b50ce66c
@ -33,13 +33,11 @@ public class CordovaWebView extends WebView {
|
||||
|
||||
/** Actvities and other important classes **/
|
||||
private Context mCtx;
|
||||
private CordovaWebViewClient viewClient;
|
||||
private CordovaChromeClient chromeClient;
|
||||
|
||||
public CordovaWebView(Context context) {
|
||||
super(context);
|
||||
mCtx = context;
|
||||
setup();
|
||||
//setup();
|
||||
}
|
||||
|
||||
public CordovaWebView(Context context, AttributeSet attrs) {
|
||||
@ -61,7 +59,7 @@ public class CordovaWebView extends WebView {
|
||||
setup();
|
||||
}
|
||||
|
||||
private void setup()
|
||||
public void setup()
|
||||
{
|
||||
this.setInitialScale(0);
|
||||
this.setVerticalScrollBarEnabled(false);
|
||||
|
@ -278,6 +278,7 @@ public class DroidGap extends Activity implements CordovaInterface {
|
||||
// white list of allowed URLs
|
||||
// debug setting
|
||||
this.loadConfiguration();
|
||||
this.appView.setup();
|
||||
|
||||
this.appView.setLayoutParams(new LinearLayout.LayoutParams(
|
||||
ViewGroup.LayoutParams.FILL_PARENT,
|
||||
|
Loading…
Reference in New Issue
Block a user