|
|
@ -66,8 +66,13 @@ public class HttpUtil { |
|
|
|
public void onFailure(@NotNull Call call, @NotNull IOException e) { |
|
|
|
public void onFailure(@NotNull Call call, @NotNull IOException e) { |
|
|
|
if (BuildConfig.DEBUG) { |
|
|
|
if (BuildConfig.DEBUG) { |
|
|
|
Looper.prepare(); |
|
|
|
Looper.prepare(); |
|
|
|
new AlertDialog.Builder(context) |
|
|
|
if (BuildConfig.API_HOST.contains("http")) { |
|
|
|
.setMessage(context.getString(R.string.check_server_fail, BuildConfig.API_HOST)).show(); |
|
|
|
new AlertDialog.Builder(context) |
|
|
|
|
|
|
|
.setMessage(context.getString(R.string.check_server_fail, BuildConfig.API_HOST)).show(); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
new AlertDialog.Builder(context) |
|
|
|
|
|
|
|
.setMessage(context.getString(R.string.error_api_host, BuildConfig.API_HOST)).show(); |
|
|
|
|
|
|
|
} |
|
|
|
Looper.loop(); |
|
|
|
Looper.loop(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|