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 },
onMangaClicked = onMangaClicked,
onToggleSelection = { presenter.toggleSelection(it) },
onToggleSelectBetween = { presenter.toggleSelectBetween(it) },
onToggleRangeSelection = { presenter.toggleRangeSelection(it) },
onRefresh = onClickRefresh,
onGlobalSearchClicked = onGlobalSearchClicked,
getNumberOfMangaForCategory = { presenter.getMangaCountForCategory(it) },

View File

@ -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<Int?>,
@ -86,7 +86,7 @@ fun LibraryContent(
}
}
val onLongClickManga = { manga: LibraryManga ->
onToggleSelectBetween(manga)
onToggleRangeSelection(manga)
}
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
* 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 }) {