Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
095f4b65
Commit
095f4b65
authored
Nov 29, 2018
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UPDATE
parent
e979daf9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
src/main/java/tech/starwin/impl/HttpObserver.java
+3
-2
src/main/java/tech/starwin/utils/ui_utils/DialogFactory.java
+1
-1
src/main/java/tech/starwin/utils/ui_utils/DialogManager.java
+3
-0
No files found.
src/main/java/tech/starwin/impl/HttpObserver.java
View file @
095f4b65
...
...
@@ -90,7 +90,7 @@ public abstract class HttpObserver<T> implements Observer<T> {
return
true
;
case
403
:
// 短信发送失败
onError
(
Error
.
SERVER_ERROR
,
LibConfig
.
getContext
().
getString
(
R
.
string
.
s
how_not_login_yet
));
onError
(
Error
.
SERVER_ERROR
,
LibConfig
.
getContext
().
getString
(
R
.
string
.
s
ms_code_error
));
return
true
;
case
409
:
if
(
exception
.
response
().
body
()
!=
null
)
{
...
...
@@ -131,8 +131,9 @@ public abstract class HttpObserver<T> implements Observer<T> {
"time out"
};
for
(
String
error
:
errorArray
)
{
if
(
msg
.
contains
(
error
))
if
(
msg
.
contains
(
error
))
{
return
true
;
}
}
return
false
;
}
...
...
src/main/java/tech/starwin/utils/ui_utils/DialogFactory.java
View file @
095f4b65
...
...
@@ -176,7 +176,7 @@ public class DialogFactory {
/**
* 创建一个自定义的
View
* 创建一个自定义的
Dialog
*/
public
static
Dialog
createCustomDialog
(
Context
context
,
@LayoutRes
int
layout
,
OnViewCreatedListener
listener
)
{
View
view
=
LayoutInflater
.
from
(
context
).
inflate
(
layout
,
null
);
...
...
src/main/java/tech/starwin/utils/ui_utils/DialogManager.java
View file @
095f4b65
...
...
@@ -85,4 +85,7 @@ public class DialogManager {
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment