From c44c22622032d46f9bd2653188da25c8695d794b Mon Sep 17 00:00:00 2001 From: Kagura Date: Sun, 13 Oct 2024 17:23:51 +0800 Subject: [PATCH] fix: useless param --- .../com/dazuoye/filemanager/compose/ui/SearchFileColumn.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/dazuoye/filemanager/compose/ui/SearchFileColumn.kt b/app/src/main/java/com/dazuoye/filemanager/compose/ui/SearchFileColumn.kt index c09ae4c..66901c2 100644 --- a/app/src/main/java/com/dazuoye/filemanager/compose/ui/SearchFileColumn.kt +++ b/app/src/main/java/com/dazuoye/filemanager/compose/ui/SearchFileColumn.kt @@ -158,7 +158,8 @@ class SearchFileColumn( ) } } else { - DrawColumns(fileList, + DrawColumns( + fileList, searchText = searchText.value, onSearch = { name, searchWhat -> searchText.value = searchWhat @@ -201,7 +202,6 @@ class SearchFileColumn( @Composable private fun DrawColumns( fileList: List, - update: (() -> Unit)? = null, searchText: String = "", onSearch: ((String, String) -> Unit)? = null, onItemClick: ((String) -> Unit)? = null