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