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
438c6e44
Commit
438c6e44
authored
May 07, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/new_dev_4.3.91' into new_dev_4.3.91
parents
06af52c8
33d33360
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
21 deletions
+17
-21
config.gradle
config.gradle
+2
-2
ConfideHomeActivity.kt
m-confide/src/main/java/com/ydl/confide/home/ConfideHomeActivity.kt
+13
-15
ConfideHomeAdapter.kt
m-confide/src/main/java/com/ydl/confide/home/adapter/ConfideHomeAdapter.kt
+1
-1
readme.md
m-confide/src/main/java/com/ydl/confide/home/readme.md
+0
-2
ConfideHomeUtils.kt
m-confide/src/main/java/com/ydl/confide/home/util/ConfideHomeUtils.kt
+1
-1
No files found.
config.gradle
View file @
438c6e44
...
...
@@ -5,7 +5,7 @@ ext {
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.49.7
0
"
,
"m-confide"
:
"0.0.49.7
2
"
,
"m-consultant"
:
"0.0.60.21"
,
"m-fm"
:
"0.0.30.08"
,
"m-user"
:
"0.0.62.04"
,
...
...
@@ -91,7 +91,7 @@ ext {
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.49.7
0
"
,
"m-confide"
:
"0.0.49.7
2
"
,
"m-consultant"
:
"0.0.60.21"
,
"m-fm"
:
"0.0.30.08"
,
"m-user"
:
"0.0.62.04"
,
...
...
m-confide/src/main/java/com/ydl/confide/home/ConfideHomeActivity.kt
View file @
438c6e44
package
com.ydl.confide.home
import
android.annotation.SuppressLint
import
android.content.Context
import
android.os.Build
import
android.view.View
...
...
@@ -331,7 +332,7 @@ class ConfideHomeActivity : BaseLceActivity<IConfideHomeContract.View,IConfideHo
//数据重组
ConfideHomeUtils
.
resetData
(
cacheList
!!
,
v_filterView
,
listScrollListener
!!
)
setHideFilterView
()
mConfideAdapter
?.
updat
a
Items
(
cacheList
!!
)
mConfideAdapter
?.
updat
e
Items
(
cacheList
!!
)
mConfideAdapter
?.
notifyDataSetChanged
()
rv_list
.
refreshComplete
()
}
...
...
@@ -340,7 +341,7 @@ class ConfideHomeActivity : BaseLceActivity<IConfideHomeContract.View,IConfideHo
* 更新适配器数据(用于播放 暂停 状态切换 更新整体数据)
*/
private
fun
updateAdapterForPlayStatus
()
{
mConfideAdapter
!!
.
updat
a
Items
(
cacheList
!!
)
mConfideAdapter
!!
.
updat
e
Items
(
cacheList
!!
)
mConfideAdapter
!!
.
notifyDataSetChanged
()
}
...
...
@@ -425,6 +426,7 @@ class ConfideHomeActivity : BaseLceActivity<IConfideHomeContract.View,IConfideHo
*/
override
fun
recommendListMoreResponse
(
bean
:
ConfideHomeDataBean
)
{
dismissProgressDialog
()
rv_list
.
loadMoreComplete
()
bean
.
recommendId
=
page
if
(
bean
.
body
?.
size
?:
0
==
0
)
{
rv_list
.
loadMoreComplete
()
...
...
@@ -432,14 +434,8 @@ class ConfideHomeActivity : BaseLceActivity<IConfideHomeContract.View,IConfideHo
return
}
(
cacheList
as
ArrayList
).
add
(
bean
)
va
r
size
=
mConfideAdapter
!!
.
itemCount
va
l
size
=
mConfideAdapter
!!
.
itemCount
mConfideAdapter
!!
.
addItems
(
ConfideHomeUtils
.
getRecommendList
(
bean
))
// if (bean?.body == null || bean.body!!.size < 10) {
// rv_list.setNoMore(true)
// } else {
rv_list
.
loadMoreComplete
()
// }
mConfideAdapter
!!
.
notifyItemInserted
(
if
(
size
>
0
)
size
+
1
else
0
)
}
...
...
@@ -448,13 +444,14 @@ class ConfideHomeActivity : BaseLceActivity<IConfideHomeContract.View,IConfideHo
*/
override
fun
recommendListResponse
(
bean
:
ConfideHomeDataBean
)
{
dismissProgressDialog
()
rv_list
.
loadMoreComplete
()
updateCacheDataByRecommend
(
bean
)
mConfideAdapter
!!
.
updat
a
Items
(
cacheList
!!
)
if
(
bean
?.
body
==
null
||
bean
.
body
!!
.
size
<
10
)
{
rv_list
.
setNoMore
(
true
)
}
else
{
rv_list
.
loadMoreComplete
()
}
mConfideAdapter
!!
.
updat
e
Items
(
cacheList
!!
)
// if (bean.body == null || bean.body
.size < 10) {
//
rv_list.setNoMore(true)
//
} else {
//
rv_list.loadMoreComplete()
//
}
mConfideAdapter
!!
.
notifyDataSetChanged
()
}
...
...
@@ -532,6 +529,7 @@ class ConfideHomeActivity : BaseLceActivity<IConfideHomeContract.View,IConfideHo
}
}
@SuppressLint
(
"MissingSuperCall"
)
override
fun
onDestroy
()
{
super
.
onDestroy
()
mConfideEvent
!!
.
destoryPlayer
()
...
...
m-confide/src/main/java/com/ydl/confide/home/adapter/ConfideHomeAdapter.kt
View file @
438c6e44
...
...
@@ -43,7 +43,7 @@ class ConfideHomeAdapter(private val mContext: Context,
return
mListData
!!
[
position
].
type
!!
}
fun
updat
a
Items
(
list
:
List
<
ConfideHomeDataBean
>)
{
fun
updat
e
Items
(
list
:
List
<
ConfideHomeDataBean
>)
{
if
(
null
==
mListData
||
mListData
!!
.
isEmpty
())
{
mListData
=
ArrayList
()
}
else
{
...
...
m-confide/src/main/java/com/ydl/confide/home/readme.md
deleted
100644 → 0
View file @
06af52c8
倾诉首页界面
\ No newline at end of file
m-confide/src/main/java/com/ydl/confide/home/util/ConfideHomeUtils.kt
View file @
438c6e44
...
...
@@ -118,7 +118,7 @@ class ConfideHomeUtils {
*/
fun
getRecommendList
(
dataBean
:
ConfideHomeDataBean
):
MutableList
<
ConfideHomeDataBean
>
{
var
list
:
MutableList
<
ConfideHomeDataBean
>
=
ArrayList
()
if
(
null
==
dataBean
||
null
==
dataBean
.
body
||
dataBean
.
body
.
isEmpty
())
{
if
(
dataBean
.
body
==
null
||
dataBean
.
body
.
isEmpty
())
{
return
list
}
for
(
bodyBean
in
dataBean
.
body
)
{
...
...
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