From 53e5cd51d2e2827b42884c4daf69a311f7f44546 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 24 Oct 2019 17:40:08 +0800 Subject: [PATCH] up --- .../app/ui/filechooser/FileChooserDialog.kt | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 app/src/main/java/io/legado/app/ui/filechooser/FileChooserDialog.kt 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 new file mode 100644 index 000000000..6c1fc6fbd --- /dev/null +++ b/app/src/main/java/io/legado/app/ui/filechooser/FileChooserDialog.kt @@ -0,0 +1,20 @@ +package io.legado.app.ui.filechooser + +import androidx.fragment.app.DialogFragment +import androidx.fragment.app.FragmentManager + + +class FileChooserDialog : DialogFragment() { + + companion object { + const val tag = "FileChooserDialog" + + fun show(manager: FragmentManager) { + val fragment = + (manager.findFragmentByTag(tag) as? FileChooserDialog) ?: FileChooserDialog() + fragment.show(manager, tag) + } + } + + +} \ No newline at end of file