Hi,
I'm using Android Embedded and trying to dismiss the xwalkview fragment in
case the page wasn't loaded.
I set the webView's XWalkUIClient as:
class MYXWalkUIClient extends XWalkUIClient {
>
>
>> public MYXWalkUIClient(XWalkView view) {
>
> super(view);
>
> }
>
> @Override
>
> public void onPageLoadStopped(XWalkView view, String url, LoadStatus
>> status) {
>
> super.onPageLoadStopped(view, url, status);
>
> if (status == LoadStatus.FAILED) {
>
> Fragment frag =
>> getFragmentManager().findFragmentByTag("mydialogFragmentTag");
>
> if (frag != null) {
>
> WebViewDialogFragment webViewFrag = (WebViewDialogFragment) frag;
>
> webViewFrag.dismiss();
>
> getFragmentManager().executePendingTransactions();
>
> Log.d(LOG_TAG, "Page load stopped due to a failure.");
>
> }
>
> }
>
> }
>
>
But sometimes when the WiFi is off, I get the javascript "Unable to reach
server" while I do not get the loadstop being called with the failed status.
Any ideas why this is happenig?
Thanks.
--
Best Regards
Aram Azhari
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help