更改自定义栏目浮窗消失逻辑 https://gitlab.ghzs.com/pm/halo-app-issues/-/issues/878
This commit is contained in:
@ -138,13 +138,15 @@ class DescFragment : BaseFragment<Any>() {
|
||||
if (i < 0) continue
|
||||
|
||||
if (mAdapter.getItemViewType(i) == DescAdapter.CUSTOM_COLUMN
|
||||
&& mAdapter.descItemList.get(i).customColumn?.showExpandTagsHint == true) {
|
||||
&& mAdapter.descItemList[i].customColumn?.showExpandTagsHint == true) {
|
||||
// 触发了一次完整可见不需等待是否满足三秒,下次进入不再显示
|
||||
SPUtils.setBoolean(Constants.SP_HAS_SHOWN_EXPANDED_GAME_DETAIL_TAGS_HINT, true)
|
||||
|
||||
// 可视三秒后隐藏自定义栏目的标签展开浮窗提示
|
||||
mDisplayHintDisposable?.dispose()
|
||||
mDisplayHintDisposable = countDownTimer(3L) { isFinish, _ ->
|
||||
if (isFinish && activity?.isFinishing != true && isThisPositionVisible(i)) {
|
||||
tryWithDefaultCatch {
|
||||
SPUtils.setBoolean(Constants.SP_HAS_SHOWN_EXPANDED_GAME_DETAIL_TAGS_HINT, true)
|
||||
mAdapter.descItemList[i].customColumn?.showExpandTagsHint = false
|
||||
mAdapter.notifyItemChanged(i)
|
||||
}
|
||||
@ -191,5 +193,4 @@ class DescFragment : BaseFragment<Any>() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -99,8 +99,7 @@ data class CustomColumn(
|
||||
var infoTag: List<TagEntity>? = listOf(),
|
||||
var time: Long? = 0,
|
||||
// 是否显示自定义栏目的提示浮窗 (本地字段)
|
||||
var showExpandTagsHint: Boolean? = false
|
||||
)
|
||||
var showExpandTagsHint: Boolean? = false)
|
||||
|
||||
@Keep
|
||||
data class Title(var icon: String, var value: String, var color: String)
|
||||
|
||||
@ -256,7 +256,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="12dp"
|
||||
android:text="点击展开更多"
|
||||
android:text="点击查看说明"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
Reference in New Issue
Block a user