refactor(android): remove stale UI helpers · openclaw/openclaw@1423487
vincentkoc
·
2026-06-23
·
via Recent Commits to openclaw:main
File tree
apps/android/app/src/main/java/ai/openclaw/app
| Original file line number | Diff line number | Diff line change |
|---|
@@ -109,6 +109,3 @@ fun normalizeMainKey(raw: String?): String? {
|
109 | 109 | val trimmed = raw?.trim().orEmpty() |
110 | 110 | return if (trimmed.isEmpty()) null else trimmed |
111 | 111 | } |
112 | | - |
113 | | -/** Returns true only for the canonical main-session key understood by gateway UI. */ |
114 | | -fun isCanonicalMainSessionKey(key: String): Boolean = key == "main" |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -973,24 +973,6 @@ private fun userFacingChatError(error: String): String {
|
973 | 973 | } |
974 | 974 | } |
975 | 975 | |
976 | | -/** Normalizes persisted thinking values into compact UI labels. */ |
977 | | -private fun thinkingDisplay(value: String): String = |
978 | | -when (value.lowercase(Locale.US)) { |
979 | | -"low" -> "Low" |
980 | | -"medium" -> "Medium" |
981 | | -"high" -> "High" |
982 | | -else -> "Off" |
983 | | - } |
984 | | - |
985 | | -/** Converts displayed thinking labels back to gateway request values. */ |
986 | | -private fun thinkingValue(display: String): String = |
987 | | -when (display.lowercase(Locale.US)) { |
988 | | -"low" -> "low" |
989 | | -"medium" -> "medium" |
990 | | -"high" -> "high" |
991 | | -else -> "off" |
992 | | - } |
993 | | - |
994 | 976 | /** Cycles through context budget presets from the compact composer control. */ |
995 | 977 | private fun nextThinkingValue(value: String): String = |
996 | 978 | when (value.lowercase(Locale.US)) { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,7 +4,6 @@ import ai.openclaw.app.ui.LocalMobileColors
|
4 | 4 | import ai.openclaw.app.ui.darkMobileColors |
5 | 5 | import ai.openclaw.app.ui.lightMobileColors |
6 | 6 | import ai.openclaw.app.ui.mobileFontFamily |
7 | | -import androidx.compose.foundation.isSystemInDarkTheme |
8 | 7 | import androidx.compose.material3.MaterialTheme |
9 | 8 | import androidx.compose.material3.Shapes |
10 | 9 | import androidx.compose.material3.Typography |
@@ -190,12 +189,6 @@ internal fun ClawDesignTheme(
|
190 | 189 | } |
191 | 190 | } |
192 | 191 | |
193 | | -/** |
194 | | - * Returns the system dark-mode preference for callers that expose theme selection. |
195 | | - */ |
196 | | -@Composable |
197 | | -internal fun rememberClawDarkPreference(): Boolean = isSystemInDarkTheme() |
198 | | - |
199 | 192 | private fun clawTypography(fontFamily: FontFamily) = |
200 | 193 | ClawTypography( |
201 | 194 | display = |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。