import android.app.Dialog
import android.content.Context
import android.content.DialogInterface
import android.app.Dialog
import android.content.Context
import android.content.DialogInterface
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
// Get the data from the arguments.
val currentFolder = requireArguments().getString(CURRENT_FOLDER)!!
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
// Get the data from the arguments.
val currentFolder = requireArguments().getString(CURRENT_FOLDER)!!
// Set the listener for the cancel button. Using `null` as the listener closes the dialog without doing anything else.
dialogBuilder.setNegativeButton(R.string.cancel, null)
// Set the listener for the cancel button. Using `null` as the listener closes the dialog without doing anything else.
dialogBuilder.setNegativeButton(R.string.cancel, null)