mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
We show the default 404 on non-resolved domains
This commit is contained in:
parent
8923e52a5e
commit
c5025ee2bb
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user