|
|
@ -5,6 +5,7 @@ import android.content.Context; |
|
|
|
import android.content.Intent; |
|
|
|
import android.content.Intent; |
|
|
|
import android.net.Uri; |
|
|
|
import android.net.Uri; |
|
|
|
import android.os.Looper; |
|
|
|
import android.os.Looper; |
|
|
|
|
|
|
|
import android.util.Log; |
|
|
|
import android.util.Patterns; |
|
|
|
import android.util.Patterns; |
|
|
|
import android.util.TypedValue; |
|
|
|
import android.util.TypedValue; |
|
|
|
import android.view.View; |
|
|
|
import android.view.View; |
|
|
@ -129,6 +130,8 @@ public class HttpUtil { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void onFailure(@NotNull Call call, @NotNull IOException e) { |
|
|
|
public void onFailure(@NotNull Call call, @NotNull IOException e) { |
|
|
|
bool.postValue(false); |
|
|
|
bool.postValue(false); |
|
|
|
|
|
|
|
Log.e(HttpUtil.class.getName(),e.toString()); |
|
|
|
|
|
|
|
try { |
|
|
|
if (BuildConfig.DEBUG) { |
|
|
|
if (BuildConfig.DEBUG) { |
|
|
|
Looper.prepare(); |
|
|
|
Looper.prepare(); |
|
|
|
AlertDialog.Builder builder = getBuilder(context); |
|
|
|
AlertDialog.Builder builder = getBuilder(context); |
|
|
@ -180,6 +183,9 @@ public class HttpUtil { |
|
|
|
builder.show(); |
|
|
|
builder.show(); |
|
|
|
Looper.loop(); |
|
|
|
Looper.loop(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} catch (Exception ex) { |
|
|
|
|
|
|
|
Log.e(HttpUtil.class.getName(),ex.toString()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|