pull/32/head
kunfei 5 years ago
parent 0fe6f83f6e
commit 2bdca6ed64
  1. 2
      app/src/main/java/io/legado/app/ui/changesource/ChangeSourceDialog.kt
  2. 5
      app/src/main/res/layout/dialog_change_source.xml

@ -6,6 +6,7 @@ import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.DialogFragment
import io.legado.app.R
import kotlinx.android.synthetic.main.dialog_change_source.*
class ChangeSourceDialog : DialogFragment() {
@ -17,6 +18,7 @@ class ChangeSourceDialog : DialogFragment() {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
tool_bar.inflateMenu(R.menu.search_view)
}

@ -5,10 +5,11 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<io.legado.app.ui.widget.TitleBar
android:id="@+id/title_bar"
<androidx.appcompat.widget.Toolbar
android:id="@+id/tool_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:displayHomeAsUp="false"
app:fitStatusBar="false"
app:layout_constraintTop_toTopOf="parent" />

Loading…
Cancel
Save