feat: 隐藏吧页面快捷操作按钮
This commit is contained in:
parent
d7748541fb
commit
17301cf540
|
|
@ -365,6 +365,11 @@ class ForumActivity : BaseActivity(), View.OnClickListener, OnRefreshedListener,
|
|||
addMaskAnimation(maskRadius = 50f.dpToPxFloat())
|
||||
}
|
||||
}.init()
|
||||
if (appPreferences.forumFabFunction == "hide") {
|
||||
fab.visibility = View.GONE
|
||||
} else {
|
||||
fab.visibility = View.VISIBLE
|
||||
}
|
||||
}
|
||||
|
||||
override fun setTitle(newTitle: String?) {
|
||||
|
|
|
|||
|
|
@ -589,6 +589,7 @@ fun ForumPage(
|
|||
)
|
||||
},
|
||||
floatingActionButton = {
|
||||
if (context.appPreferences.forumFabFunction != "hide") {
|
||||
FloatingActionButton(
|
||||
onClick = {
|
||||
when (context.appPreferences.forumFabFunction) {
|
||||
|
|
@ -640,6 +641,7 @@ fun ForumPage(
|
|||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
) { contentPadding ->
|
||||
Column(modifier = Modifier.padding(contentPadding)) {
|
||||
AnimatedVisibility(
|
||||
|
|
|
|||
|
|
@ -168,7 +168,8 @@ fun HabitSettingsPage(
|
|||
entries = mapOf(
|
||||
"post" to stringResource(id = R.string.btn_post),
|
||||
"refresh" to stringResource(id = R.string.btn_refresh),
|
||||
"back_to_top" to stringResource(id = R.string.btn_back_to_top)
|
||||
"back_to_top" to stringResource(id = R.string.btn_back_to_top),
|
||||
"hide" to stringResource(id = R.string.btn_hide)
|
||||
)
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -737,4 +737,5 @@
|
|||
<string name="title_lift_up_bottom_bar">全面屏优化</string>
|
||||
<string name="summary_lift_up_bottom_bar">略微抬起贴子页面底栏以方便点按</string>
|
||||
<string name="button_open">打开</string>
|
||||
<string name="btn_hide">隐藏</string>
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Reference in New Issue