mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-24 13:01:51 +01:00
Fix issues with ManageCategoryDialog
This commit is contained in:
parent
a65ac5cab5
commit
d0ceac73f5
@ -91,7 +91,7 @@ class ManageCategoryDialog(bundle: Bundle? = null) :
|
|||||||
} else if (categoryExists) {
|
} else if (categoryExists) {
|
||||||
binding.categoryTextLayout.error = binding.categoryTextLayout.context.getString(R.string.category_with_name_exists)
|
binding.categoryTextLayout.error = binding.categoryTextLayout.context.getString(R.string.category_with_name_exists)
|
||||||
return false
|
return false
|
||||||
} else {
|
} else if (text.isBlank()) {
|
||||||
binding.categoryTextLayout.error = binding.categoryTextLayout.context.getString(R.string.category_cannot_be_blank)
|
binding.categoryTextLayout.error = binding.categoryTextLayout.context.getString(R.string.category_cannot_be_blank)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
@ -101,7 +101,7 @@ class ManageCategoryDialog(bundle: Bundle? = null) :
|
|||||||
preferences.downloadNew().set(true)
|
preferences.downloadNew().set(true)
|
||||||
}
|
}
|
||||||
if (preferences.libraryUpdateInterval().getOrDefault() > 0 &&
|
if (preferences.libraryUpdateInterval().getOrDefault() > 0 &&
|
||||||
!updatePref(preferences.libraryUpdateCategories(), binding.downloadNew)
|
!updatePref(preferences.libraryUpdateCategories(), binding.includeGlobal)
|
||||||
) {
|
) {
|
||||||
preferences.libraryUpdateInterval().set(0)
|
preferences.libraryUpdateInterval().set(0)
|
||||||
LibraryUpdateJob.setupTask(0)
|
LibraryUpdateJob.setupTask(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user