光环助手V4.3.0-论坛功能优化(第一期)0904需求测试(1,2) https://gitlab.ghzs.com/pm/halo-app-issues/-/issues/1002

This commit is contained in:
张玉久
2020-09-25 10:34:53 +08:00
parent 62b1005dbf
commit f601fd2339
3 changed files with 4 additions and 3 deletions

View File

@ -100,7 +100,7 @@ class ForumArticleListFragment : ListFragment<ArticleEntity, ForumArticleListVie
}
fun onRefresh(filter: String) {
mViewModel?.sort = if (filter == "最新发布") "time.create" else "time.comment"
mViewModel?.sort = if (filter == "最新发布") "time.edit" else "time.comment"
onRefresh()
}

View File

@ -15,7 +15,7 @@ import io.reactivex.Observable
class ForumArticleListViewModel(application: Application, val path: String) : ListViewModel<ArticleEntity, ArticleEntity>(application) {
var sort: String = "time.comment"//排序 time.create 最新发布 time.comment 最新回复
var sort: String = "time.comment"//排序 time.edit 最新发布 time.comment 最新回复
override fun provideDataObservable(page: Int): Observable<MutableList<ArticleEntity>>? {
return if (path == "关注") {

View File

@ -91,7 +91,8 @@ abstract class BaseArticleDetailCommentViewModel(application: Application, var a
} else if (commentList.isNullOrEmpty() && mLoadStatusLiveData.value == LoadStatus.INIT_FAILED) {
add(CommentItemData(errorConnection = true))
} else {
var floor = 1
//从第二楼开始
var floor = 2
commentList?.forEach {
if (displayFloor) {
it.floor = floor