Minor fixes

- Fix categories modal showing when adding from source with no categories
- Use old categories icon in library bottom action menu

(cherry picked from commit 688cc64dff)

# Conflicts:
#	app/src/main/java/eu/kanade/presentation/components/MangaBottomActionMenu.kt
#	app/src/main/java/eu/kanade/tachiyomi/App.kt
This commit is contained in:
arkon
2022-08-06 16:23:13 -04:00
committed by Jobobby04
parent 8b777e1e5a
commit c0db682476
5 changed files with 10 additions and 3 deletions
@@ -201,6 +201,7 @@ class FavoritesSyncHelper(val context: Context) {
private suspend fun applyRemoteCategories(categories: List<String>) {
val localCategories = getCategories.await()
.filterNot(Category::isSystemCategory)
categories.forEachIndexed { index, remote ->
val local = localCategories.getOrElse(index) {
@@ -346,6 +347,7 @@ class FavoritesSyncHelper(val context: Context) {
val insertedMangaCategories = mutableListOf<Pair<Long, Manga>>()
val categories = getCategories.await()
.filterNot(Category::isSystemCategory)
// Apply additions
throttleManager.resetThrottle()