mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-18 09:39:17 +01:00
grammar fix
This commit is contained in:
parent
289b076864
commit
c1ade84766
@ -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) },
|
||||||
|
@ -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(
|
||||||
|
@ -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 }) {
|
||||||
|
Loading…
Reference in New Issue
Block a user