From 822476ace70db1a81ef0a2ab8ce7900c50adc018 Mon Sep 17 00:00:00 2001 From: gedoor Date: Sun, 8 Aug 2021 00:54:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B9=A6=E6=BA=90=E5=AF=BC?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../legado/app/ui/association/ImportBookSourceDialog.kt | 8 ++++++-- app/src/main/res/layout/dialog_custom_group.xml | 7 +++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/association/ImportBookSourceDialog.kt b/app/src/main/java/io/legado/app/ui/association/ImportBookSourceDialog.kt index cc240f3f2..9b487ffa6 100644 --- a/app/src/main/java/io/legado/app/ui/association/ImportBookSourceDialog.kt +++ b/app/src/main/java/io/legado/app/ui/association/ImportBookSourceDialog.kt @@ -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() diff --git a/app/src/main/res/layout/dialog_custom_group.xml b/app/src/main/res/layout/dialog_custom_group.xml index 21c8f4967..a41597fe5 100644 --- a/app/src/main/res/layout/dialog_custom_group.xml +++ b/app/src/main/res/layout/dialog_custom_group.xml @@ -16,7 +16,9 @@ + android:layout_height="wrap_content" + android:paddingTop="6dp" + android:paddingBottom="6dp"> + android:layout_height="wrap_content" + android:paddingTop="6dp">