pull/49/head
kunfei 5 years ago
parent d146f83d0e
commit 30c5a79237
  1. 18
      app/src/main/java/io/legado/app/ui/book/read/config/ReadAloudDialog.kt

@ -22,15 +22,6 @@ import org.jetbrains.anko.sdk27.listeners.onLongClick
class ReadAloudDialog : DialogFragment() {
var callBack: CallBack? = null
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
callBack = activity as? CallBack
return inflater.inflate(R.layout.dialog_read_aloud, container)
}
override fun onStart() {
super.onStart()
val dm = DisplayMetrics()
@ -49,6 +40,15 @@ class ReadAloudDialog : DialogFragment() {
}
}
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
callBack = activity as? CallBack
return inflater.inflate(R.layout.dialog_read_aloud, container)
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
initData()

Loading…
Cancel
Save