Skip to content

Commit 723abbe

Browse files
committed
fix(CategoryPresenter): Run setCategories on Main thread
Fixes GH-273
1 parent 8c96e8d commit 723abbe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/main/java/eu/kanade/tachiyomi/ui/category/CategoryPresenter.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ class CategoryPresenter(
100100
scope.launch {
101101
deleteCategories.awaitOne(safeCategory.toLong())
102102
categories.remove(category)
103-
controller.setCategories(categories.map(::CategoryItem))
103+
withContext(Dispatchers.Main) {
104+
controller.setCategories(categories.map(::CategoryItem))
105+
}
104106
}
105107
}
106108

0 commit comments

Comments
 (0)