Skip to content

[Android] #292 ChildBrowser.onLocationChange timing inconsistency between iPhone and Android #297

Closed
wants to merge 1 commit into from
View
6 Android/ChildBrowser/src/com/phonegap/plugins/childBrowser/ChildBrowser.java
@@ -390,7 +390,11 @@ public void onPageStarted(WebView view, String url, Bitmap favicon) {
if (!newloc.equals(edittext.getText().toString())) {
edittext.setText(newloc);
}
-
+ }
+
+ @Override
+ public void onPageFinished(WebView view, String url) {
+ super.onPageFinished(view, url);
try {
JSONObject obj = new JSONObject();
obj.put("type", LOCATION_CHANGED_EVENT);
Something went wrong with that request. Please try again.