feat: 优化代码

pull/132/head
kunfei 5 years ago
parent 01b503f464
commit c59a7f0444
  1. 2
      app/src/main/java/io/legado/app/base/BaseDialogFragment.kt
  2. 1
      app/src/main/java/io/legado/app/ui/book/changecover/ChangeCoverDialog.kt
  3. 1
      app/src/main/java/io/legado/app/ui/widget/font/FontSelectDialog.kt

@ -19,7 +19,7 @@ abstract class BaseDialogFragment : DialogFragment(), CoroutineScope {
job = Job()
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
final override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
onFragmentCreated(view, savedInstanceState)
observeLiveBus()

@ -55,7 +55,6 @@ class ChangeCoverDialog : BaseDialogFragment(),
}
override fun onFragmentCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
viewModel.searchStateData.observe(viewLifecycleOwner, Observer {
refresh_progress_bar.isAutoLoading = it
})

@ -61,7 +61,6 @@ class FontSelectDialog : BaseDialogFragment(),
}
override fun onFragmentCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
tool_bar.setTitle(R.string.select_font)
tool_bar.inflateMenu(R.menu.font_select)
tool_bar.setOnMenuItemClickListener(this)

Loading…
Cancel
Save