mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 12:03:28 +08:00
Fixing the WebViewClient so we view pages in PhoneGap
This commit is contained in:
parent
020178e40b
commit
ceabaf1e37
@ -116,7 +116,8 @@ public class DroidGap extends Activity {
|
|||||||
if(cupcakeStorage != null)
|
if(cupcakeStorage != null)
|
||||||
cupcakeStorage.setStorage(appPackage);
|
cupcakeStorage.setStorage(appPackage);
|
||||||
|
|
||||||
root.addView(appView);
|
root.addView(appView);
|
||||||
|
|
||||||
setContentView(root);
|
setContentView(root);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -175,6 +176,12 @@ public class DroidGap extends Activity {
|
|||||||
mCtx = ctx;
|
mCtx = ctx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean shouldOverrideUrlLoading(WebView view, String url) {
|
||||||
|
view.loadUrl(url);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onJsAlert(WebView view, String url, String message, JsResult result) {
|
public boolean onJsAlert(WebView view, String url, String message, JsResult result) {
|
||||||
Log.d(LOG_TAG, message);
|
Log.d(LOG_TAG, message);
|
||||||
|
Loading…
Reference in New Issue
Block a user