Formatting
This commit is contained in:
@@ -43,7 +43,7 @@ class ChangeMangaCategoriesDialog<T>(bundle: Bundle? = null) :
|
||||
setQuadStateMultiChoiceItems(
|
||||
items = categories.map { it.name },
|
||||
isActionList = false,
|
||||
initialSelected = preselected.toIntArray()
|
||||
initialSelected = preselected.toIntArray(),
|
||||
) { selections ->
|
||||
selected = selections
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ class DeleteLibraryMangasDialog<T>(bundle: Bundle? = null) :
|
||||
val items = when (canDeleteChapters) {
|
||||
true -> listOf(
|
||||
R.string.manga_from_library,
|
||||
R.string.downloaded_chapters
|
||||
R.string.downloaded_chapters,
|
||||
)
|
||||
false -> listOf(R.string.manga_from_library)
|
||||
}
|
||||
|
||||
@@ -211,7 +211,7 @@ class LibraryController(
|
||||
binding.btnGlobalSearch.clicks()
|
||||
.onEach {
|
||||
router.pushController(
|
||||
GlobalSearchController(presenter.query).withFadeTransaction()
|
||||
GlobalSearchController(presenter.query).withFadeTransaction(),
|
||||
)
|
||||
}
|
||||
.launchIn(viewScope)
|
||||
@@ -281,8 +281,8 @@ class LibraryController(
|
||||
listOf(
|
||||
EmptyView.Action(R.string.getting_started_guide, R.drawable.ic_help_24dp) {
|
||||
activity?.openInBrowser("https://tachiyomi.org/help/guides/getting-started")
|
||||
}
|
||||
)
|
||||
},
|
||||
),
|
||||
)
|
||||
(activity as? MainActivity)?.ready = true
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ class LibraryPresenter(
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribeLatestCache({ view, (categories, mangaMap) ->
|
||||
view.onNextLibraryUpdate(categories, mangaMap)
|
||||
})
|
||||
},)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -381,7 +381,7 @@ class LibraryPresenter(
|
||||
LibraryItem(
|
||||
libraryManga,
|
||||
shouldSetFromCategory,
|
||||
defaultLibraryDisplayMode
|
||||
defaultLibraryDisplayMode,
|
||||
)
|
||||
}.groupBy { it.manga.category }
|
||||
}
|
||||
|
||||
@@ -57,13 +57,13 @@ class LibrarySettingsSheet(
|
||||
override fun getTabViews(): List<View> = listOf(
|
||||
filters,
|
||||
sort,
|
||||
display
|
||||
display,
|
||||
)
|
||||
|
||||
override fun getTabTitles(): List<Int> = listOf(
|
||||
R.string.action_filter,
|
||||
R.string.action_sort,
|
||||
R.string.action_display
|
||||
R.string.action_display,
|
||||
)
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user