remove custom onMessage

This commit is contained in:
Yaroslav Dmytrotsa 2015-08-11 08:59:53 +03:00
parent 97209c73be
commit 5a576b7b3a
1 changed files with 6 additions and 3 deletions

View File

@ -192,14 +192,17 @@ public class WebViewFragment extends Fragment {
}
protected CordovaInterfaceImpl makeCordovaInterface() {
return new CordovaInterfaceImpl(getActivity());
/*
return new CordovaInterfaceImpl(getActivity()) {
@Override
public Object onMessage(String id, Object data) {
return WebViewFragment.this.onMessage(id, data);
}
};
*/
}
/*
public Object onMessage(String id, Object data) {
if ("onReceivedError".equals(id)) {
//TODO: do we need handle error and show it?
@ -210,7 +213,7 @@ public class WebViewFragment extends Fragment {
} catch (JSONException e) {
e.printStackTrace();
}
*/
* /
} else if ("onPageFinished".equals(id)) {
// webView.getEngine().loadUrl("javascript: " + js_cordova, false);
} else if ("exit".equals(id)) {
@ -218,7 +221,7 @@ public class WebViewFragment extends Fragment {
}
return null;
}
*/
@Override
public void onPause() {
super.onPause();