Updated on 2026-08-14
This commit is contained in:
parent
a46fc13fb0
commit
4f88a5ddf9
2 changed files with 3 additions and 3 deletions
|
|
@ -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)),
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue