From 9306c2fab86a7b91f464aec165cc95266ff68df7 Mon Sep 17 00:00:00 2001 From: LeanBitLab Date: Sat, 28 Nov 2026 09:21:13 +0530 Subject: [PATCH] fix(settings): keep content the trailing lambda of SearchScreen The actions parameter added after content in c4e3b11d8 took the trailing lambda, so screens like the language settings drew their whole page inside the top bar. --- app/src/main/java/helium314/keyboard/settings/SearchScreen.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/helium314/keyboard/settings/SearchScreen.kt b/app/src/main/java/helium314/keyboard/settings/SearchScreen.kt index 69a7423af..8ab851558 100644 --- a/app/src/main/java/helium314/keyboard/settings/SearchScreen.kt +++ b/app/src/main/java/helium314/keyboard/settings/SearchScreen.kt @@ -284,9 +284,10 @@ fun SearchScreen( icon: @Composable (() -> Unit)? = null, menu: List Unit>>? = null, headerContent: (@Composable () -> Unit)? = null, - content: @Composable (ColumnScope.() -> Unit)? = null, /** more top bar buttons, after the search button */ actions: (@Composable () -> Unit)? = null, + // keep content last: callers pass it as a trailing lambda + content: @Composable (ColumnScope.() -> Unit)? = null, ) { // searchText and showSearch should have the same remember or rememberSaveable // saveable survives orientation changes and switching between screens, but shows the