cordovaInterface.onActivityResult(requestCode, resultCode, intent);
}
public void onReceivedError(final int errorCode, final String description, final String failingUrl) {
final CordovaActivity me = this;
final String errorUrl = preferences.getString("errorUrl", null);
<BUG>if ((errorUrl != null) && (errorUrl.startsWith("file://") || internalWhitelist.isUrlWhiteListed(errorUrl)) && (!failingUrl.equals(errorUrl))) {
me.runOnUiThread(new Runnable() {</BUG>
public void run() {
me.appView.showWebPage(errorUrl, false, true, null);
}

cordovaInterface.onActivityResult(requestCode, resultCode, intent);
}
public void onReceivedError(final int errorCode, final String description, final String failingUrl) {
final CordovaActivity me = this;
final String errorUrl = preferences.getString("errorUrl", null);
CordovaUriHelper helper = new CordovaUriHelper(this.cordovaInterface, appView);
if ((errorUrl != null) &&
(!failingUrl.equals(errorUrl)) &&
(appView != null && helper.shouldAllowNavigation(errorUrl))
) {
me.runOnUiThread(new Runnable() {
public void run() {
me.appView.showWebPage(errorUrl, false, true, null);
}
