mirror of
https://github.com/apache/cordova-android.git
synced 2026-02-21 00:02:46 +08:00
Minor tweaks to DroidGap, allows for the ChromeClient and ViewClient to be overridden
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user