Skip to content

Commit

Permalink
refractor: Apply suggestion from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasBourdin88 committed Dec 16, 2024
1 parent 39ad8b7 commit be1e6a0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ abstract class DownloadProgressDialog : DialogFragment() {
}

override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
val context = requireContext()
isCancelable = false

return MaterialAlertDialogBuilder(context)
return MaterialAlertDialogBuilder(requireContext())
.setTitle(dialogTitle)
.setView(binding.root)
.setOnKeyListener { _, keyCode, event ->
Expand Down

0 comments on commit be1e6a0

Please sign in to comment.