We show the default 404 on non-resolved domains

This commit is contained in:
Joe Bowser 2012-03-06 14:09:11 -08:00
parent 8923e52a5e
commit c5025ee2bb

View File

@ -1185,13 +1185,16 @@ public class DroidGap extends Activity implements CordovaInterface {
}
});
}
// If not, then display error dialog
else {
final boolean exit = !(errorCode == WebViewClient.ERROR_HOST_LOOKUP);
me.runOnUiThread(new Runnable() {
public void run() {
me.appView.setVisibility(View.GONE);
me.displayError("Application Error", description + " ("+failingUrl+")", "OK", true);
if(exit)
{
me.appView.setVisibility(View.GONE);
me.displayError("Application Error", description + " ("+failingUrl+")", "OK", exit);
}
}
});
}