grammar fix

This commit is contained in:
Deltashot 2022-10-10 22:06:58 +02:00
parent 289b076864
commit c1ade84766
3 changed files with 4 additions and 4 deletions

View File

@ -70,7 +70,7 @@ fun LibraryScreen(
onChangeCurrentPage = { presenter.activeCategory = it }, onChangeCurrentPage = { presenter.activeCategory = it },
onMangaClicked = onMangaClicked, onMangaClicked = onMangaClicked,
onToggleSelection = { presenter.toggleSelection(it) }, onToggleSelection = { presenter.toggleSelection(it) },
onToggleSelectBetween = { presenter.toggleSelectBetween(it) }, onToggleRangeSelection = { presenter.toggleRangeSelection(it) },
onRefresh = onClickRefresh, onRefresh = onClickRefresh,
onGlobalSearchClicked = onGlobalSearchClicked, onGlobalSearchClicked = onGlobalSearchClicked,
getNumberOfMangaForCategory = { presenter.getMangaCountForCategory(it) }, getNumberOfMangaForCategory = { presenter.getMangaCountForCategory(it) },

View File

@ -45,7 +45,7 @@ fun LibraryContent(
onChangeCurrentPage: (Int) -> Unit, onChangeCurrentPage: (Int) -> Unit,
onMangaClicked: (Long) -> Unit, onMangaClicked: (Long) -> Unit,
onToggleSelection: (LibraryManga) -> Unit, onToggleSelection: (LibraryManga) -> Unit,
onToggleSelectBetween: (LibraryManga) -> Unit, onToggleRangeSelection: (LibraryManga) -> Unit,
onRefresh: (Category?) -> Boolean, onRefresh: (Category?) -> Boolean,
onGlobalSearchClicked: () -> Unit, onGlobalSearchClicked: () -> Unit,
getNumberOfMangaForCategory: @Composable (Long) -> State<Int?>, getNumberOfMangaForCategory: @Composable (Long) -> State<Int?>,
@ -86,7 +86,7 @@ fun LibraryContent(
} }
} }
val onLongClickManga = { manga: LibraryManga -> val onLongClickManga = { manga: LibraryManga ->
onToggleSelectBetween(manga) onToggleRangeSelection(manga)
} }
SwipeRefresh( SwipeRefresh(

View File

@ -681,7 +681,7 @@ class LibraryPresenter(
* Selects all mangas between and including the given manga and the last pressed manga from the * Selects all mangas between and including the given manga and the last pressed manga from the
* same category as the given manga * same category as the given manga
*/ */
fun toggleSelectBetween(manga: LibraryManga) { fun toggleRangeSelection(manga: LibraryManga) {
val mutableList = state.selection.toMutableList() val mutableList = state.selection.toMutableList()
if (!removeSelected(mutableList, manga) && if (!removeSelected(mutableList, manga) &&
mutableList.fastAny{ it.category == manga.category }) { mutableList.fastAny{ it.category == manga.category }) {