@AnyThread @Override public void onError(final Exception e)
{
runOnUiThread(() ->
{
// a 5xx error is not the fault of this app. Nothing we can do about it, so it does not
// make sense to send an error report. Just notify the user
// Also, we treat an invalid response the same as a (temporary) connection error
if (e instanceof OsmConnectionException || e instanceof OsmApiReadResponseException)
{
Toast.makeText(MainActivity.this,R.string.download_server_error, Toast.LENGTH_LONG).show();
}
else
{
crashReportExceptionHandler.askUserToSendErrorReport(MainActivity.this, R.string.download_error, e);
}
});
}
MainActivity.java 文件源码
java
阅读 57
收藏 0
点赞 0
评论 0
项目:StreetComplete
作者:
评论列表
文章目录