【光环助手V5.1.0】 0806产品运营测试问题(3)https://git.ghzs.com/pm/halo-app-issues/-/issues/1436
This commit is contained in:
@ -25,11 +25,9 @@ class ModeratorListFragment : NormalFragment() {
|
||||
private val mReuseLoading by bindView<LinearLayout>(R.id.reuse_ll_loading)
|
||||
private val mNoConnection by bindView<LinearLayout>(R.id.reuse_no_connection)
|
||||
private val mNoneData by bindView<LinearLayout>(R.id.reuse_none_data)
|
||||
private val mGroupContainer by bindView<LinearLayout>(R.id.groupContainer)
|
||||
private val mToolbar by bindView<Toolbar>(R.id.toolbar)
|
||||
private val mDoubtIv by bindView<ImageView>(R.id.doubtIv)
|
||||
private val mApplyTv by bindView<TextView>(R.id.applyTv)
|
||||
private val mGroupTv by bindView<TextView>(R.id.groupTv)
|
||||
private var mViewModel: ModeratorListViewModel? = null
|
||||
private var mAdapter: ModeratorListAdapter? = null
|
||||
private var mBbsId: String = ""
|
||||
@ -45,10 +43,6 @@ class ModeratorListFragment : NormalFragment() {
|
||||
val factory = ModeratorListViewModel.Factory(mBbsId)
|
||||
mViewModel = viewModelProvider(factory)
|
||||
|
||||
mViewModel?.qqGroupNumber?.observe(this, Observer {
|
||||
mGroupTv.text = it
|
||||
})
|
||||
|
||||
mViewModel?.isModerators?.observe(this, Observer {
|
||||
if (it) {
|
||||
mApplyTv.background = R.drawable.bg_forum_follow.toDrawable()
|
||||
@ -67,7 +61,6 @@ class ModeratorListFragment : NormalFragment() {
|
||||
mNoConnection.visibility = View.GONE
|
||||
if (it.isNotEmpty()) {
|
||||
mNoneData.visibility = View.GONE
|
||||
mGroupContainer.visibility = View.VISIBLE
|
||||
mAdapter?.setListData(it)
|
||||
} else {
|
||||
mNoneData.visibility = View.VISIBLE
|
||||
@ -119,12 +112,6 @@ class ModeratorListFragment : NormalFragment() {
|
||||
)
|
||||
}
|
||||
}
|
||||
mGroupTv.setOnClickListener {
|
||||
DirectUtils.directToQqGroup(
|
||||
requireContext(),
|
||||
mGroupTv.text.toString()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
|
||||
@ -52,46 +52,10 @@
|
||||
android:layout_below="@+id/toolbarContainer"
|
||||
android:background="@color/white">
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/list_rv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/list_rv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/groupContainer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/list_rv"
|
||||
android:gravity="center"
|
||||
android:visibility="gone"
|
||||
android:orientation="horizontal"
|
||||
android:padding="18dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="加入版主审核QQ群:"
|
||||
android:textColor="@color/text_666666"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/groupTv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/theme"
|
||||
android:textSize="12sp" />
|
||||
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<include
|
||||
layout="@layout/reuse_loading"
|
||||
|
||||
Reference in New Issue
Block a user