pull/42/head
parent
30f98e4a39
commit
53e5cd51d2
@ -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…
Reference in new issue