Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
add592e4
Commit
add592e4
authored
Jun 21, 2022
by
fengquan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 倾诉列表搜索
parent
8f4e2322
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
2 deletions
+32
-2
ConfideHomeActivity.kt
m-confide/src/main/java/com/ydl/confide/home/ConfideHomeActivity.kt
+31
-1
ErrorMessageConverter.java
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/util/ErrorMessageConverter.java
+1
-1
No files found.
m-confide/src/main/java/com/ydl/confide/home/ConfideHomeActivity.kt
View file @
add592e4
...
@@ -452,6 +452,21 @@ class ConfideHomeActivity :
...
@@ -452,6 +452,21 @@ class ConfideHomeActivity :
val
keyWord
=
data
?.
getStringExtra
(
FinalString
.
CONFIDE_SEARCH_KEY_WORD
)
val
keyWord
=
data
?.
getStringExtra
(
FinalString
.
CONFIDE_SEARCH_KEY_WORD
)
if
(
keyWord
!=
null
){
if
(
keyWord
!=
null
){
keyword
=
keyWord
keyword
=
keyWord
page
=
1
allFiltersBean
=
ConfideHomeAllFiltersBean
(
page
,
""
,
ConfideHomeFiterItemBean
().
apply
{
id
=
"-1"
name
=
""
},
ConfideHomeFiterItemBean
().
apply
{
id
=
"-1"
name
=
""
},
ArrayList
(),
ArrayList
()
)
rl_search_head
.
findViewById
<
TextView
>(
R
.
id
.
etSearch
).
setText
(
keyword
)
rl_search_head
.
findViewById
<
TextView
>(
R
.
id
.
etSearch
).
setText
(
keyword
)
onRefresh
()
onRefresh
()
}
}
...
@@ -526,7 +541,22 @@ class ConfideHomeActivity :
...
@@ -526,7 +541,22 @@ class ConfideHomeActivity :
}
}
if
(
bean
?.
body
!=
null
&&
bean
?.
body
.
size
==
0
)
{
if
(
bean
?.
body
!=
null
&&
bean
?.
body
.
size
==
0
)
{
cacheList
?.
add
(
ConfideHomeDataBean
(
IConfideHomeConfig
.
TYPE_EMPTY
,
null
,
null
,
null
,
-
1
))
var
hasEmptyLayout
:
Boolean
=
false
for
(
index
in
(
0
..
(
cacheList
!!
.
size
-
1
)).
reversed
())
{
if
(
cacheList
!!
[
index
].
type
==
IConfideHomeConfig
.
TYPE_EMPTY
)
{
hasEmptyLayout
=
true
break
}
}
if
(!
hasEmptyLayout
){
cacheList
?.
add
(
ConfideHomeDataBean
(
IConfideHomeConfig
.
TYPE_EMPTY
,
null
,
null
,
null
,
-
1
))
}
}
else
{
for
(
index
in
(
0
..
(
cacheList
!!
.
size
-
1
)).
reversed
())
{
if
(
cacheList
!!
[
index
].
type
==
IConfideHomeConfig
.
TYPE_EMPTY
)
{
cacheList
!!
.
removeAt
(
index
)
}
}
}
}
listScrollListener
?.
moveToPosition
(
rv_list
)
listScrollListener
?.
moveToPosition
(
rv_list
)
...
...
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/util/ErrorMessageConverter.java
View file @
add592e4
...
@@ -690,7 +690,7 @@ public class ErrorMessageConverter {
...
@@ -690,7 +690,7 @@ public class ErrorMessageConverter {
return
getLocalizedString
(
R
.
string
.
TUIKitErrorSVRNoSuccessResult
);
// @"批量操作无成功结果";
return
getLocalizedString
(
R
.
string
.
TUIKitErrorSVRNoSuccessResult
);
// @"批量操作无成功结果";
case
BaseConstants
.
ERR_TO_USER_INVALID
:
case
BaseConstants
.
ERR_TO_USER_INVALID
:
return
getLocalizedString
(
R
.
string
.
TUIKitErrorSVRToUserInvalid
);
// @"IM: 无效接收方";
return
getLocalizedString
(
R
.
string
.
TUIKitErrorSVRToUserInvalid
);
// @"IM: 无效接收方";
case
BaseConstants
.
ERR_REQUEST_TIMEOUT
:
case
BaseConstants
.
ERR_REQUEST_TIME
_
OUT
:
return
getLocalizedString
(
R
.
string
.
TUIKitErrorSVRRequestTimeout
);
// @"请求超时";
return
getLocalizedString
(
R
.
string
.
TUIKitErrorSVRRequestTimeout
);
// @"请求超时";
case
BaseConstants
.
ERR_INIT_CORE_FAIL
:
case
BaseConstants
.
ERR_INIT_CORE_FAIL
:
return
getLocalizedString
(
R
.
string
.
TUIKitErrorSVRInitCoreFail
);
// @"INIT CORE模块失败";
return
getLocalizedString
(
R
.
string
.
TUIKitErrorSVRInitCoreFail
);
// @"INIT CORE模块失败";
...
...
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