|
|
|
@ -330,7 +330,7 @@ class BookSourceActivity : VMBaseActivity<ActivityBookSourceBinding, BookSourceV |
|
|
|
|
private fun checkSource() { |
|
|
|
|
alert(titleResource = R.string.search_book_key) { |
|
|
|
|
val alertBinding = DialogEditTextBinding.inflate(layoutInflater).apply { |
|
|
|
|
textInputLayout.hint = "search word" |
|
|
|
|
editView.hint = "search word" |
|
|
|
|
editView.setText(CheckSource.keyword) |
|
|
|
|
} |
|
|
|
|
customView { alertBinding.root } |
|
|
|
@ -351,7 +351,7 @@ class BookSourceActivity : VMBaseActivity<ActivityBookSourceBinding, BookSourceV |
|
|
|
|
private fun selectionAddToGroups() { |
|
|
|
|
alert(titleResource = R.string.add_group) { |
|
|
|
|
val alertBinding = DialogEditTextBinding.inflate(layoutInflater).apply { |
|
|
|
|
textInputLayout.setHint(R.string.group_name) |
|
|
|
|
editView.setHint(R.string.group_name) |
|
|
|
|
editView.setFilterValues(groups.toList()) |
|
|
|
|
editView.dropDownHeight = 180.dp |
|
|
|
|
} |
|
|
|
@ -371,7 +371,7 @@ class BookSourceActivity : VMBaseActivity<ActivityBookSourceBinding, BookSourceV |
|
|
|
|
private fun selectionRemoveFromGroups() { |
|
|
|
|
alert(titleResource = R.string.remove_group) { |
|
|
|
|
val alertBinding = DialogEditTextBinding.inflate(layoutInflater).apply { |
|
|
|
|
textInputLayout.setHint(R.string.group_name) |
|
|
|
|
editView.setHint(R.string.group_name) |
|
|
|
|
editView.setFilterValues(groups.toList()) |
|
|
|
|
editView.dropDownHeight = 180.dp |
|
|
|
|
} |
|
|
|
@ -405,7 +405,7 @@ class BookSourceActivity : VMBaseActivity<ActivityBookSourceBinding, BookSourceV |
|
|
|
|
?.toMutableList() ?: mutableListOf() |
|
|
|
|
alert(titleResource = R.string.import_on_line) { |
|
|
|
|
val alertBinding = DialogEditTextBinding.inflate(layoutInflater).apply { |
|
|
|
|
textInputLayout.hint = "url" |
|
|
|
|
editView.hint = "url" |
|
|
|
|
editView.setFilterValues(cacheUrls) |
|
|
|
|
editView.delCallBack = { |
|
|
|
|
cacheUrls.remove(it) |
|
|
|
|