mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 23:42:53 +08:00
Adding old code back, we can't access webViewClient methods without them being on the UI thread. :(
This commit is contained in:
parent
8ac274cdca
commit
531b8f641f
@ -407,11 +407,10 @@ public class DroidGap extends Activity implements CordovaInterface {
|
|||||||
|
|
||||||
// If timeout, then stop loading and handle error
|
// If timeout, then stop loading and handle error
|
||||||
if (me.loadUrlTimeout == currentLoadUrlTimeout) {
|
if (me.loadUrlTimeout == currentLoadUrlTimeout) {
|
||||||
/*
|
me.appView.stopLoading();
|
||||||
me.appView.stopLoading();
|
LOG.e(TAG, "DroidGap: TIMEOUT ERROR! - calling webViewClient");
|
||||||
LOG.e(TAG, "DroidGap: TIMEOUT ERROR! - calling webViewClient");
|
//We need another mechanism for handling timeout errors, we can't use webViewClient.onReceivedError anymore.
|
||||||
me.webViewClient.onReceivedError(me.appView, -6, "The connection to the server was unsuccessful.", url);
|
//me.webViewClient.onReceivedError(me.appView, -6, "The connection to the server was unsuccessful.", url);
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user