Updated on 2026-08-14

This commit is contained in:
Tangem 2026-01-12 08:07:20 +01:00
parent a46fc13fb0
commit 4f88a5ddf9
2 changed files with 3 additions and 3 deletions

View file

@ -23,8 +23,7 @@ internal data class MarketsListUM(
val onSearchClicked: () -> Unit,
) {
val isInSearchMode
get() = marketsSearchBar.searchBarUM.isActive &&
marketsSearchBar.searchBarUM.query.isNotEmpty()
get() = marketsSearchBar.searchBarUM.query.isNotEmpty()
enum class TrendInterval(val text: TextReference) {
H24(resourceReference(R.string.markets_selector_interval_24h_title)),

View file

@ -59,7 +59,8 @@ internal fun TopBarWithSearch(
val focusRequester: FocusRequester = remember { FocusRequester() }
AnimatedContent(
targetState = !marketsSearchBar.shouldAlwaysShowSearchBar && !marketsSearchBar.searchBarUM.isActive,
targetState = !marketsSearchBar.shouldAlwaysShowSearchBar &&
!marketsSearchBar.searchBarUM.isActive && marketsSearchBar.searchBarUM.query.isEmpty(),
) { showAppBarWithBackIcon ->
if (showAppBarWithBackIcon) {
AppBarWithBackButtonAndIcon(