换源添加是否校验作者选项

pull/933/head
gedoor 4 years ago
parent 84b6fcc6db
commit bbffb4ccaf
  1. 7
      app/src/main/java/io/legado/app/ui/book/changesource/ChangeSourceDialog.kt
  2. 6
      app/src/main/res/layout/item_change_source.xml

@ -77,12 +77,7 @@ class ChangeSourceDialog : BaseDialogFragment(),
private fun showTitle() { private fun showTitle() {
binding.toolBar.title = viewModel.name binding.toolBar.title = viewModel.name
val author = if (viewModel.author.isBlank()) { binding.toolBar.subtitle = viewModel.author
getString(R.string.empty)
} else {
viewModel.author
}
binding.toolBar.subtitle = getString(R.string.author_show, author)
} }
private fun initMenu() { private fun initMenu() {

@ -1,10 +1,14 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="?android:attr/selectableItemBackground" android:background="?android:attr/selectableItemBackground"
android:padding="10dp"> android:paddingLeft="10dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
tools:ignore="RtlHardcoded,RtlSymmetry">
<TextView <TextView
android:id="@+id/tv_origin" android:id="@+id/tv_origin"

Loading…
Cancel
Save