优化书源导入

pull/1222/head
gedoor 3 years ago
parent 422a71967f
commit 822476ace7
  1. 8
      app/src/main/java/io/legado/app/ui/association/ImportBookSourceDialog.kt
  2. 7
      app/src/main/res/layout/dialog_custom_group.xml

@ -198,8 +198,12 @@ class ImportBookSourceDialog : BaseDialogFragment(), Toolbar.OnMenuItemClickList
if (viewModel.groupName.isNullOrBlank()) {
item.title = getString(R.string.diy_source_group)
} else {
item.title =
getString(R.string.diy_edit_source_group_title, viewModel.groupName)
val group = getString(R.string.diy_edit_source_group_title, viewModel.groupName)
if (viewModel.isAddGroup) {
item.title = "+$group"
} else {
item.title = group
}
}
}
noButton()

@ -16,7 +16,9 @@
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:paddingTop="6dp"
android:paddingBottom="6dp">
<TextView
android:id="@+id/tv_add_group_title"
@ -54,7 +56,8 @@
<io.legado.app.ui.widget.text.TextInputLayout
android:id="@+id/text_input_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:paddingTop="6dp">
<io.legado.app.ui.widget.text.AutoCompleteTextView
android:id="@+id/edit_view"

Loading…
Cancel
Save