mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 09:11:59 +01:00
Long press favorite button to manage categories
This commit is contained in:
parent
8ba426350f
commit
fff0f841fa
@ -526,7 +526,7 @@ class MangaController :
|
|||||||
mangaInfoAdapter?.notifyDataSetChanged()
|
mangaInfoAdapter?.notifyDataSetChanged()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun onCategoriesClick() {
|
fun onCategoriesClick() {
|
||||||
val manga = presenter.manga
|
val manga = presenter.manga
|
||||||
val categories = presenter.getCategories()
|
val categories = presenter.getCategories()
|
||||||
|
|
||||||
|
@ -85,6 +85,12 @@ class MangaInfoHeaderAdapter(
|
|||||||
.onEach { controller.onFavoriteClick() }
|
.onEach { controller.onFavoriteClick() }
|
||||||
.launchIn(scope)
|
.launchIn(scope)
|
||||||
|
|
||||||
|
if (controller.presenter.manga.favorite && controller.presenter.getCategories().isNotEmpty()) {
|
||||||
|
binding.btnFavorite.longClicks()
|
||||||
|
.onEach { controller.onCategoriesClick() }
|
||||||
|
.launchIn(scope)
|
||||||
|
}
|
||||||
|
|
||||||
if (controller.presenter.manga.favorite && Injekt.get<TrackManager>().hasLoggedServices()) {
|
if (controller.presenter.manga.favorite && Injekt.get<TrackManager>().hasLoggedServices()) {
|
||||||
binding.btnTracking.visible()
|
binding.btnTracking.visible()
|
||||||
binding.btnTracking.clicks()
|
binding.btnTracking.clicks()
|
||||||
|
Loading…
Reference in New Issue
Block a user