From 2788b33886834b978afc9431ecc6de80f1c97dc5 Mon Sep 17 00:00:00 2001 From: Kazuki Chigita Date: Thu, 17 Aug 2023 01:10:34 +0900 Subject: [PATCH] Rename to onClickTimetableItemBookmark --- .../io/github/droidkaigi/confsched2023/sessions/SearchScreen.kt | 2 +- .../droidkaigi/confsched2023/sessions/SearchScreenViewModel.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/feature/sessions/src/main/java/io/github/droidkaigi/confsched2023/sessions/SearchScreen.kt b/feature/sessions/src/main/java/io/github/droidkaigi/confsched2023/sessions/SearchScreen.kt index bdb2af615..7423ed40c 100644 --- a/feature/sessions/src/main/java/io/github/droidkaigi/confsched2023/sessions/SearchScreen.kt +++ b/feature/sessions/src/main/java/io/github/droidkaigi/confsched2023/sessions/SearchScreen.kt @@ -85,7 +85,7 @@ fun SearchScreen( onFilterCategoryChipClicked = viewModel::onFilterCategoryChipClicked, onCategoriesSelected = viewModel::onCategoriesSelected, onTimetableItemClick = onTimetableItemClick, - onBookmarkClick = viewModel::updateBookmark, + onBookmarkClick = viewModel::onClickTimetableItemBookmark, ) } diff --git a/feature/sessions/src/main/java/io/github/droidkaigi/confsched2023/sessions/SearchScreenViewModel.kt b/feature/sessions/src/main/java/io/github/droidkaigi/confsched2023/sessions/SearchScreenViewModel.kt index 4b3d73b8a..dac35f1f1 100644 --- a/feature/sessions/src/main/java/io/github/droidkaigi/confsched2023/sessions/SearchScreenViewModel.kt +++ b/feature/sessions/src/main/java/io/github/droidkaigi/confsched2023/sessions/SearchScreenViewModel.kt @@ -119,7 +119,7 @@ class SearchScreenViewModel @Inject constructor( ) } - fun updateBookmark(timetableItem: TimetableItem) { + fun onClickTimetableItemBookmark(timetableItem: TimetableItem) { viewModelScope.launch { sessionsRepository.toggleBookmark(timetableItem.id) }