Minor fixes

- Fix categories modal showing when adding from source with no categories
- Use old categories icon in library bottom action menu
This commit is contained in:
arkon
2022-08-06 16:23:13 -04:00
parent 9f0052eceb
commit 688cc64dff
4 changed files with 9 additions and 4 deletions

View File

@@ -202,7 +202,7 @@ class App : Application(), DefaultLifecycleObserver, ImageLoaderFactory {
return super.getPackageName()
}
protected open fun setupAcra() {
private fun setupAcra() {
if (isDevFlavor.not()) {
initAcra {
buildConfigClass = BuildConfig::class.java
@@ -216,7 +216,7 @@ class App : Application(), DefaultLifecycleObserver, ImageLoaderFactory {
}
}
protected open fun setupNotificationChannels() {
private fun setupNotificationChannels() {
try {
Notifications.createChannels(this)
} catch (e: Exception) {

View File

@@ -5,6 +5,7 @@ package eu.kanade.tachiyomi
*
* @since extension-lib 1.3
*/
@Suppress("UNUSED")
object AppInfo {
fun getVersionCode() = BuildConfig.VERSION_CODE
fun getVersionName() = BuildConfig.VERSION_NAME

View File

@@ -387,7 +387,10 @@ open class BrowseSourcePresenter(
* @return List of categories, not including the default category
*/
suspend fun getCategories(): List<DomainCategory> {
return getCategories.subscribe().firstOrNull() ?: emptyList()
return getCategories.subscribe()
.firstOrNull()
?.filterNot { it.id == DomainCategory.UNCATEGORIZED_ID }
?: emptyList()
}
suspend fun getDuplicateLibraryManga(manga: DomainManga): DomainManga? {