From 30c5a7923756b123b5e83d5fa9bb31d2751f14af Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 30 Nov 2019 20:36:29 +0800 Subject: [PATCH] up --- .../app/ui/book/read/config/ReadAloudDialog.kt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/config/ReadAloudDialog.kt b/app/src/main/java/io/legado/app/ui/book/read/config/ReadAloudDialog.kt index 553d18576..dad85212f 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/config/ReadAloudDialog.kt +++ b/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()