mirror of
https://github.com/twofas/2fas-android.git
synced 2024-11-22 10:20:15 +01:00
Fix services search bar focusing issues
This commit is contained in:
parent
2ac74348e7
commit
4f2e3319ab
@ -152,11 +152,11 @@ private fun SearchBar(
|
||||
verticalAlignment = Alignment.CenterVertically
|
||||
) {
|
||||
|
||||
AnimatedVisibility(visible = focused.not()) {
|
||||
AnimatedVisibility(visible = focused.not() && query.isEmpty()) {
|
||||
TwImage(painter = painterResource(id = com.twofasapp.designsystem.R.drawable.logo_2fas), modifier = Modifier.size(24.dp))
|
||||
}
|
||||
|
||||
AnimatedVisibility(visible = focused) {
|
||||
AnimatedVisibility(visible = focused || query.isNotEmpty()) {
|
||||
TwIcon(painter = TwIcons.Search, modifier = Modifier.size(24.dp))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user