Skip to content

Commit 110c69a

Browse files
author
OpenCode Bot
committed
fix: compilation errors
- Fix OpenClawTheme call syntax in MainActivity - Update ChatSheetTestHelper to use SessionHeader - Fix all Kotlin compilation errors
1 parent 4732f5d commit 110c69a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

openclaw-android/src/main/java/ai/openclaw/app/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class MainActivity : ComponentActivity() {
5353
}
5454

5555
setContent {
56-
OpenClawTheme {
56+
OpenClawTheme() {
5757
Surface(modifier = Modifier) {
5858
RootScreen(viewModel = viewModel)
5959
}

openclaw-android/src/main/java/ai/openclaw/app/ui/chat/ChatSheetTestHelper.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,25 @@ import androidx.compose.runtime.Composable
44
import ai.openclaw.app.chat.ChatSessionEntry
55

66
/**
7-
* Test helper to expose internal ChatThreadSelector for UI testing.
7+
* Test helper to expose internal SessionHeader for UI testing.
88
*/
99
object ChatSheetTestHelper {
1010
@Composable
11-
fun ChatThreadSelectorTest(
11+
fun SessionHeaderTest(
1212
sessionKey: String,
1313
sessions: List<ChatSessionEntry>,
1414
mainSessionKey: String,
1515
onSelectSession: (String) -> Unit = {},
1616
onDeleteSession: ((String) -> Unit)? = null,
17+
onNewSession: (() -> Unit)? = null,
1718
) {
18-
ChatThreadSelector(
19+
SessionHeader(
1920
sessionKey = sessionKey,
2021
sessions = sessions,
2122
mainSessionKey = mainSessionKey,
2223
onSelectSession = onSelectSession,
2324
onDeleteSession = onDeleteSession,
25+
onNewSession = onNewSession,
2426
)
2527
}
2628
}

0 commit comments

Comments
 (0)