mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Fix issues with ManageCategoryDialog
This commit is contained in:
parent
a65ac5cab5
commit
d0ceac73f5
1 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ class ManageCategoryDialog(bundle: Bundle? = null) :
|
|||
} else if (categoryExists) {
|
||||
binding.categoryTextLayout.error = binding.categoryTextLayout.context.getString(R.string.category_with_name_exists)
|
||||
return false
|
||||
} else {
|
||||
} else if (text.isBlank()) {
|
||||
binding.categoryTextLayout.error = binding.categoryTextLayout.context.getString(R.string.category_cannot_be_blank)
|
||||
return false
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ class ManageCategoryDialog(bundle: Bundle? = null) :
|
|||
preferences.downloadNew().set(true)
|
||||
}
|
||||
if (preferences.libraryUpdateInterval().getOrDefault() > 0 &&
|
||||
!updatePref(preferences.libraryUpdateCategories(), binding.downloadNew)
|
||||
!updatePref(preferences.libraryUpdateCategories(), binding.includeGlobal)
|
||||
) {
|
||||
preferences.libraryUpdateInterval().set(0)
|
||||
LibraryUpdateJob.setupTask(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue