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