From c1ade84766b465598d0bbdccacd9a768bf14663c Mon Sep 17 00:00:00 2001 From: Deltashot Date: Mon, 10 Oct 2022 22:06:58 +0200 Subject: [PATCH] grammar fix --- .../main/java/eu/kanade/presentation/library/LibraryScreen.kt | 2 +- .../kanade/presentation/library/components/LibraryContent.kt | 4 ++-- .../java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/kanade/presentation/library/LibraryScreen.kt b/app/src/main/java/eu/kanade/presentation/library/LibraryScreen.kt index 7d01e255b2..298fd9a0c2 100644 --- a/app/src/main/java/eu/kanade/presentation/library/LibraryScreen.kt +++ b/app/src/main/java/eu/kanade/presentation/library/LibraryScreen.kt @@ -70,7 +70,7 @@ fun LibraryScreen( onChangeCurrentPage = { presenter.activeCategory = it }, onMangaClicked = onMangaClicked, onToggleSelection = { presenter.toggleSelection(it) }, - onToggleSelectBetween = { presenter.toggleSelectBetween(it) }, + onToggleRangeSelection = { presenter.toggleRangeSelection(it) }, onRefresh = onClickRefresh, onGlobalSearchClicked = onGlobalSearchClicked, getNumberOfMangaForCategory = { presenter.getMangaCountForCategory(it) }, diff --git a/app/src/main/java/eu/kanade/presentation/library/components/LibraryContent.kt b/app/src/main/java/eu/kanade/presentation/library/components/LibraryContent.kt index 44699f5751..8bd92da65c 100644 --- a/app/src/main/java/eu/kanade/presentation/library/components/LibraryContent.kt +++ b/app/src/main/java/eu/kanade/presentation/library/components/LibraryContent.kt @@ -45,7 +45,7 @@ fun LibraryContent( onChangeCurrentPage: (Int) -> Unit, onMangaClicked: (Long) -> Unit, onToggleSelection: (LibraryManga) -> Unit, - onToggleSelectBetween: (LibraryManga) -> Unit, + onToggleRangeSelection: (LibraryManga) -> Unit, onRefresh: (Category?) -> Boolean, onGlobalSearchClicked: () -> Unit, getNumberOfMangaForCategory: @Composable (Long) -> State, @@ -86,7 +86,7 @@ fun LibraryContent( } } val onLongClickManga = { manga: LibraryManga -> - onToggleSelectBetween(manga) + onToggleRangeSelection(manga) } SwipeRefresh( diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt index 42834f86b9..e15b921525 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt @@ -681,7 +681,7 @@ class LibraryPresenter( * Selects all mangas between and including the given manga and the last pressed manga from the * same category as the given manga */ - fun toggleSelectBetween(manga: LibraryManga) { + fun toggleRangeSelection(manga: LibraryManga) { val mutableList = state.selection.toMutableList() if (!removeSelected(mutableList, manga) && mutableList.fastAny{ it.category == manga.category }) {