From d9e0506c105110c3e71f81d9544d3b7388c9fa55 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 24 Oct 2019 20:42:55 +0800 Subject: [PATCH] up --- .../app/ui/filechooser/FileChooserDialog.kt | 3 +- .../main/res/layout/dialog_file_chooser.xml | 40 +++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/layout/dialog_file_chooser.xml diff --git a/app/src/main/java/io/legado/app/ui/filechooser/FileChooserDialog.kt b/app/src/main/java/io/legado/app/ui/filechooser/FileChooserDialog.kt index f3fce06f9..a959ab81a 100644 --- a/app/src/main/java/io/legado/app/ui/filechooser/FileChooserDialog.kt +++ b/app/src/main/java/io/legado/app/ui/filechooser/FileChooserDialog.kt @@ -6,6 +6,7 @@ import android.view.View import android.view.ViewGroup import androidx.fragment.app.DialogFragment import androidx.fragment.app.FragmentManager +import io.legado.app.R class FileChooserDialog : DialogFragment() { @@ -26,7 +27,7 @@ class FileChooserDialog : DialogFragment() { container: ViewGroup?, savedInstanceState: Bundle? ): View? { - return super.onCreateView(inflater, container, savedInstanceState) + return inflater.inflate(R.layout.dialog_file_chooser, container, true) } } \ No newline at end of file diff --git a/app/src/main/res/layout/dialog_file_chooser.xml b/app/src/main/res/layout/dialog_file_chooser.xml new file mode 100644 index 000000000..a2192bbd2 --- /dev/null +++ b/app/src/main/res/layout/dialog_file_chooser.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file