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