Commit 095f4b65 by sikang

UPDATE

parent e979daf9
...@@ -90,7 +90,7 @@ public abstract class HttpObserver<T> implements Observer<T> { ...@@ -90,7 +90,7 @@ public abstract class HttpObserver<T> implements Observer<T> {
return true; return true;
case 403: case 403:
// 短信发送失败 // 短信发送失败
onError(Error.SERVER_ERROR, LibConfig.getContext().getString(R.string.show_not_login_yet)); onError(Error.SERVER_ERROR, LibConfig.getContext().getString(R.string.sms_code_error));
return true; return true;
case 409: case 409:
if (exception.response().body() != null) { if (exception.response().body() != null) {
...@@ -131,9 +131,10 @@ public abstract class HttpObserver<T> implements Observer<T> { ...@@ -131,9 +131,10 @@ public abstract class HttpObserver<T> implements Observer<T> {
"time out" "time out"
}; };
for (String error : errorArray) { for (String error : errorArray) {
if (msg.contains(error)) if (msg.contains(error)) {
return true; return true;
} }
}
return false; return false;
} }
......
...@@ -176,7 +176,7 @@ public class DialogFactory { ...@@ -176,7 +176,7 @@ public class DialogFactory {
/** /**
* 创建一个自定义的View * 创建一个自定义的Dialog
*/ */
public static Dialog createCustomDialog(Context context, @LayoutRes int layout, OnViewCreatedListener listener) { public static Dialog createCustomDialog(Context context, @LayoutRes int layout, OnViewCreatedListener listener) {
View view = LayoutInflater.from(context).inflate(layout, null); View view = LayoutInflater.from(context).inflate(layout, null);
......
...@@ -85,4 +85,7 @@ public class DialogManager { ...@@ -85,4 +85,7 @@ public class DialogManager {
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment