feat: 移除新 UI 选项

This commit is contained in:
HuanCheng65 2024-02-01 13:15:09 +08:00
parent 6a6f350cc3
commit c7164e2c71
No known key found for this signature in database
GPG Key ID: 5EC9DD60A32C7360
2 changed files with 0 additions and 24 deletions

View File

@ -7,7 +7,6 @@ import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text import androidx.compose.material.Text
import androidx.compose.material.icons.Icons import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.BugReport import androidx.compose.material.icons.outlined.BugReport
import androidx.compose.material.icons.outlined.FiberNew
import androidx.compose.material.icons.outlined.Info import androidx.compose.material.icons.outlined.Info
import androidx.compose.material.icons.outlined.OfflineBolt import androidx.compose.material.icons.outlined.OfflineBolt
import androidx.compose.runtime.Composable import androidx.compose.runtime.Composable
@ -40,7 +39,6 @@ import com.huanchengfly.tieba.post.ui.widgets.compose.LocalSnackbarHostState
import com.huanchengfly.tieba.post.ui.widgets.compose.MyScaffold import com.huanchengfly.tieba.post.ui.widgets.compose.MyScaffold
import com.huanchengfly.tieba.post.ui.widgets.compose.Sizes import com.huanchengfly.tieba.post.ui.widgets.compose.Sizes
import com.huanchengfly.tieba.post.ui.widgets.compose.TitleCentredToolbar import com.huanchengfly.tieba.post.ui.widgets.compose.TitleCentredToolbar
import com.huanchengfly.tieba.post.utils.AppIconUtil
import com.huanchengfly.tieba.post.utils.ImageCacheUtil import com.huanchengfly.tieba.post.utils.ImageCacheUtil
import com.huanchengfly.tieba.post.utils.appPreferences import com.huanchengfly.tieba.post.utils.appPreferences
import com.ramcosta.composedestinations.annotation.Destination import com.ramcosta.composedestinations.annotation.Destination
@ -105,26 +103,6 @@ fun MoreSettingsPage(
) )
} }
} }
prefsItem {
SwitchPref(
leadingIcon = {
LeadingIcon {
AvatarIcon(
icon = Icons.Outlined.FiberNew,
size = Sizes.Small,
contentDescription = null,
)
}
},
key = "enable_new_ui",
title = stringResource(id = R.string.title_enable_new_ui),
defaultChecked = true,
summary = stringResource(id = R.string.summary_enable_new_ui),
onCheckedChange = {
AppIconUtil.setIcon()
}
)
}
prefsItem { prefsItem {
SwitchPref( SwitchPref(
leadingIcon = { leadingIcon = {

View File

@ -390,8 +390,6 @@
<string name="send_reply">发送回复</string> <string name="send_reply">发送回复</string>
<string name="insert_photo">插入图片</string> <string name="insert_photo">插入图片</string>
<string name="emoticon">表情 %s</string> <string name="emoticon">表情 %s</string>
<string name="summary_enable_new_ui">启用新版 UI。部分页面尚未完成BUG 可能较多,仅供尝鲜使用!</string>
<string name="title_enable_new_ui">启用新版 UI</string>
<string name="title_dialog_oksign_battery_optimization">请忽略“电池优化”</string> <string name="title_dialog_oksign_battery_optimization">请忽略“电池优化”</string>
<string name="message_dialog_oksign_battery_optimization">在 Android 12 及以上版本中,后台启动前台服务被严格限制。为了避免一键签到无法正常启动,请忽略本应用的“电池优化”。</string> <string name="message_dialog_oksign_battery_optimization">在 Android 12 及以上版本中,后台启动前台服务被严格限制。为了避免一键签到无法正常启动,请忽略本应用的“电池优化”。</string>
<string name="button_go_to_ignore_battery_optimization">好的,去忽略</string> <string name="button_go_to_ignore_battery_optimization">好的,去忽略</string>