diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml index cd2503d..453587d 100644 --- a/.idea/deploymentTargetDropDown.xml +++ b/.idea/deploymentTargetDropDown.xml @@ -3,7 +3,20 @@ - + + + + + + + + + + + + + + diff --git a/app/src/main/java/com/croumy/hltb_wearos/presentation/ui/home/Home.kt b/app/src/main/java/com/croumy/hltb_wearos/presentation/ui/home/Home.kt index f1b17a3..121954e 100644 --- a/app/src/main/java/com/croumy/hltb_wearos/presentation/ui/home/Home.kt +++ b/app/src/main/java/com/croumy/hltb_wearos/presentation/ui/home/Home.kt @@ -92,10 +92,10 @@ fun HomeScreen( viewModel.getGames() navController.currentBackStackEntry?.savedStateHandle?.set(Constants.HOME_NEED_REFRESH, false) // SCROLL TO PLAYING LIST - horizontalScrollState.scrollToItem(1) + horizontalScrollState.scrollToItem(2) //AND SCROLL TO GAME ITEM val gameIndex = viewModel.gamesByCategories[Category.Playing]?.indexOfFirst { it.game_id == previousGameId?.value } - viewModel.currentListState.value = viewModel.listStates[1] + viewModel.currentListState.value = viewModel.listStates[2] viewModel.currentListState.value.scrollToItem(gameIndex ?: 0) navController.currentBackStackEntry?.savedStateHandle?.set(Constants.HOME_PREVIOUS_GAME_ID, null) }