From 8427b49481046556ca5a61a31e40b11f0c2406a8 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 29 Sep 2026 18:12:48 +0200 Subject: [PATCH] Suppress SearchBar deprecation warnings The SearchBarState based replacement displays the expanded search bar in a dialog, which would change the UX (in particular for the emoji picker bottom sheet). Keep the current behavior for now and migrate later. Co-Authored-By: Claude Opus 5.5 (1M context) --- .../libraries/designsystem/theme/components/SearchBar.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/components/SearchBar.kt b/libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/components/SearchBar.kt index 28a62a2c36..79b742b9b5 100644 --- a/libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/components/SearchBar.kt +++ b/libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/components/SearchBar.kt @@ -79,6 +79,9 @@ fun SearchBar( } } + // TODO Migrate to the SearchBarState API. The replacement (ExpandedFullScreenSearchBar) displays the results in a dialog, + // which would change the UX, in particular for the emoji picker bottom sheet. + @Suppress("DEPRECATION") SearchBar( inputField = { SearchBarDefaults.InputField(