【光环助手V5.0.0】提问帖相关需求 (0615测试反馈 1) https://git.ghzs.com/pm/halo-app-issues/-/issues/1251

This commit is contained in:
jack
2021-06-15 17:09:04 +08:00
parent ef97e8cc6d
commit 1a511ebbad
2 changed files with 7 additions and 0 deletions

View File

@ -1002,6 +1002,10 @@ open class AnswerDetailFragment : NormalFragment() {
return true
}
open fun shouldShowDragHint(): Boolean {
return true
}
@SuppressLint("SetTextI18n")
private fun updateQuestionView(question: Questions) {
val video = if (!question.videos.isNullOrEmpty()) question.videos[0] else null
@ -1148,6 +1152,7 @@ open class AnswerDetailFragment : NormalFragment() {
}
private fun showDragHintDialog() {
if (!shouldShowDragHint()) return
val hasShownDragHint = SPUtils.getBoolean(SHOWN_DRAG_HINT, false)
if (hasShownDragHint) {
return

View File

@ -16,4 +16,6 @@ class SimpleAnswerDetailFragment : AnswerDetailFragment() {
}
override fun shouldShowBottomController(): Boolean = false
override fun shouldShowDragHint(): Boolean = false
}