Skip to content

Commit

Permalink
fix search icon not showing in default state
Browse files Browse the repository at this point in the history
  • Loading branch information
dead8309 committed May 9, 2023
1 parent ad16e45 commit 4ab1b18
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import androidx.compose.ui.unit.sp
import com.google.gson.Gson
import com.my.kizzy.domain.model.Game
import com.my.kizzy.domain.model.RpcConfig
import com.my.kizzy.feature_rpc_base.AppUtils
import com.my.kizzy.feature_rpc_base.services.AppDetectionService
import com.my.kizzy.feature_rpc_base.services.CustomRpcService
import com.my.kizzy.feature_rpc_base.services.ExperimentalRpc
Expand All @@ -65,7 +64,7 @@ fun GamesScreen(

val context = LocalContext.current
var isConsoleRpcRunning by remember {
mutableStateOf(AppUtils.customRpcRunning())
mutableStateOf(false/*AppUtils.customRpcRunning()*/)
}
var searchText by remember { mutableStateOf("") }

Expand Down Expand Up @@ -95,7 +94,7 @@ fun GamesScreen(
}
},
actions = {
if(isSearchBarVisible) {
if(!isSearchBarVisible) {
IconButton(onClick = { onEvent(UiEvent.OpenSearchBar) }) {
Icon(Icons.Default.Search, "search")
}
Expand Down Expand Up @@ -238,7 +237,8 @@ fun SingleChoiceGameItem(
imageModel = game.large_image,
modifier = Modifier
.size(80.dp)
.clip(RoundedCornerShape(15.dp))
.clip(RoundedCornerShape(15.dp)),
previewPlaceholder = com.my.kizzy.feature_rpc_base.R.drawable.ic_console_games
)
androidx.compose.animation.AnimatedVisibility(
visible = selected,
Expand Down Expand Up @@ -277,7 +277,8 @@ fun SingleChoiceGameItem(
imageModel = game.small_image,
modifier = Modifier
.size(40.dp)
.clip(CircleShape)
.clip(CircleShape),
previewPlaceholder = com.my.kizzy.feature_rpc_base.R.drawable.ic_console_games
)
}
}
Expand Down

0 comments on commit 4ab1b18

Please sign in to comment.