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