From 746946bea444cef1b685b1da14fa6d7a425050fe Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 29 Aug 2019 09:12:38 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/widget/font/FontSelectDialog.kt | 3 ++- app/src/main/res/layout/dialog_font_select.xml | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/layout/dialog_font_select.xml diff --git a/app/src/main/java/io/legado/app/ui/widget/font/FontSelectDialog.kt b/app/src/main/java/io/legado/app/ui/widget/font/FontSelectDialog.kt index 9fd307e94..72557ec3f 100644 --- a/app/src/main/java/io/legado/app/ui/widget/font/FontSelectDialog.kt +++ b/app/src/main/java/io/legado/app/ui/widget/font/FontSelectDialog.kt @@ -5,6 +5,7 @@ import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.DialogFragment +import io.legado.app.R class FontSelectDialog : DialogFragment() { @@ -13,7 +14,7 @@ class FontSelectDialog : DialogFragment() { container: ViewGroup?, savedInstanceState: Bundle? ): View? { - return super.onCreateView(inflater, container, savedInstanceState) + return inflater.inflate(R.layout.dialog_font_select, container) } override fun onViewCreated(view: View, savedInstanceState: Bundle?) { diff --git a/app/src/main/res/layout/dialog_font_select.xml b/app/src/main/res/layout/dialog_font_select.xml new file mode 100644 index 000000000..d829e291c --- /dev/null +++ b/app/src/main/res/layout/dialog_font_select.xml @@ -0,0 +1,7 @@ + + + + \ No newline at end of file