From a7cc477e69478126248771d31b8844b5b2ba431a Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 22 Aug 2019 10:38:09 +0800 Subject: [PATCH] up --- .../app/ui/readbook/config/ReadAloudDialog.kt | 24 +++++++++++++++++++ .../app/ui/readbook/config/ReadAloudPopup.kt | 8 ------- app/src/main/res/layout/dialog_read_aloud.xml | 7 ++++++ 3 files changed, 31 insertions(+), 8 deletions(-) create mode 100644 app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudDialog.kt delete mode 100644 app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudPopup.kt create mode 100644 app/src/main/res/layout/dialog_read_aloud.xml diff --git a/app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudDialog.kt b/app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudDialog.kt new file mode 100644 index 000000000..58ab4a6a8 --- /dev/null +++ b/app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudDialog.kt @@ -0,0 +1,24 @@ +package io.legado.app.ui.readbook.config + +import android.os.Bundle +import android.view.LayoutInflater +import android.view.View +import android.view.ViewGroup +import androidx.fragment.app.DialogFragment +import io.legado.app.R + +class ReadAloudDialog : DialogFragment() { + + override fun onCreateView( + inflater: LayoutInflater, + container: ViewGroup?, + savedInstanceState: Bundle? + ): View? { + return inflater.inflate(R.layout.dialog_read_aloud, container) + } + + override fun onViewCreated(view: View, savedInstanceState: Bundle?) { + super.onViewCreated(view, savedInstanceState) + } + +} \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudPopup.kt b/app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudPopup.kt deleted file mode 100644 index 3c2863478..000000000 --- a/app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudPopup.kt +++ /dev/null @@ -1,8 +0,0 @@ -package io.legado.app.ui.readbook.config - -import android.content.Context -import android.widget.PopupWindow - -class ReadAloudPopup(context: Context?) : PopupWindow(context) { - -} \ No newline at end of file diff --git a/app/src/main/res/layout/dialog_read_aloud.xml b/app/src/main/res/layout/dialog_read_aloud.xml new file mode 100644 index 000000000..d829e291c --- /dev/null +++ b/app/src/main/res/layout/dialog_read_aloud.xml @@ -0,0 +1,7 @@ + + + + \ No newline at end of file