mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 20:33:07 +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
|
// If not, then display error dialog
|
||||||
else {
|
else {
|
||||||
|
final boolean exit = !(errorCode == WebViewClient.ERROR_HOST_LOOKUP);
|
||||||
me.runOnUiThread(new Runnable() {
|
me.runOnUiThread(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
me.appView.setVisibility(View.GONE);
|
if(exit)
|
||||||
me.displayError("Application Error", description + " ("+failingUrl+")", "OK", true);
|
{
|
||||||
|
me.appView.setVisibility(View.GONE);
|
||||||
|
me.displayError("Application Error", description + " ("+failingUrl+")", "OK", exit);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user