mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +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)
|
||||
cupcakeStorage.setStorage(appPackage);
|
||||
|
||||
root.addView(appView);
|
||||
root.addView(appView);
|
||||
|
||||
setContentView(root);
|
||||
}
|
||||
|
||||
@ -175,6 +176,12 @@ public class DroidGap extends Activity {
|
||||
mCtx = ctx;
|
||||
}
|
||||
|
||||
public boolean shouldOverrideUrlLoading(WebView view, String url) {
|
||||
view.loadUrl(url);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean onJsAlert(WebView view, String url, String message, JsResult result) {
|
||||
Log.d(LOG_TAG, message);
|
||||
|
Loading…
Reference in New Issue
Block a user