Skip to content

Commit

Permalink
Fix lint issue by using requireContext()
Browse files Browse the repository at this point in the history
  • Loading branch information
robbi5 committed Nov 14, 2023
1 parent 5bd747f commit f69fe15
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class PinDialog : DialogFragment() {
binding.keyboardButtonView9.setOnClickListener { pushDigit("9") }
binding.keyboardButtonViewBackspace.setOnClickListener { pushBackspace() }

return MaterialAlertDialogBuilder(context!!)
return MaterialAlertDialogBuilder(requireContext())
.setView(binding.root)
.setOnKeyListener { _, keyCode, event ->
if (event.action != KeyEvent.ACTION_DOWN) return@setOnKeyListener false
Expand Down

0 comments on commit f69fe15

Please sign in to comment.