pull/42/head
kunfei 5 years ago
parent 30f98e4a39
commit 53e5cd51d2
  1. 20
      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)
}
}
}
Loading…
Cancel
Save