fix: Default category should always be at the very beginning

This commit is contained in:
Ahmad Ansori Palembani 2025-01-05 17:01:33 +07:00
parent 2c137ef141
commit e81086358f
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -936,7 +936,7 @@ class LibraryPresenter(
.groupBy { it.header.catId }
// Only show default category when needed
if (rt.containsKey(0)) categories.add(defaultCategory)
if (rt.containsKey(0)) categories.add(0, defaultCategory)
// NOTE: Empty list means hide the category entirely
categories